# download repository
git clone git@github.com:andersonbosa/go-restful-api.git
# enter in the package folder
cd go-restful-api/go-restful-api
# install dependencies
go get .
# run the Gin server
go run .
I did use
httpie
in the following snippets.
GET /albums
http http://localhost:8080/albums
GET /albums/:id
http http://localhost:8080/albums/2
POST /albums
http POST http://localhost:8080/albums \
--raw '{"id": "4","title": "The Modern Sound of Betty Carter","artist": "Betty Carter","price": 49.99}'