Discover Packages
github.com/AlexDenK/Energy-drink-REST-API
module
Version:
v0.0.0-...-fca3bc1
Opens a new window with list of versions in this module.
Published: Sep 11, 2021
License: MIT
Opens a new window with license information.
README
README
¶
Energy-drink-RESTful-API
Simple RESTful API for managing energy drinks
How to run it
Go to /src
Init go.mod and go.sum files
go mod init <name>
go mod tidy
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
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.