Energy-drink-REST-API

module
v0.0.0-...-fca3bc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2021 License: MIT

README

Energy-drink-RESTful-API

Simple RESTful API for managing energy drinks

How to run it

  1. Go to /src
  2. Init go.mod and go.sum files
go mod init <name>
go mod tidy
  1. Build and run main file
go build main.go
main

How to use it

GET    /drink/      - Get all energy drinks
POST   /drink/      - Create energy drink
GET    /drink/{id}/ - Get energy drink
PUT    /drink/{id}/ - Update energy drink
DELETE /drink/{id}/ - Delete energy drink

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL