- Checkout docs: docs/index.md
# 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.
http http://localhost:8080/albums
http http://localhost:8080/albums/2
http POST http://localhost:8080/albums \
--raw '{"id": "4","title": "The Modern Sound of Betty Carter","artist": "Betty Carter","price": 49.99}'