Simple API showing how to create a CRUD API with Go and sqlite.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Clone the repo
git clone https://github.com/diasjuniorr/go-beer.git
And run the project
cd go-beer
go build api/main.go
./main
The API provides the following endpoints:
POST /v1/beers
create a new beerGET /v1/beers
list all beersGET /v1/beers/{beerId}
get beer by idPUT /v1/beers/{beerid}
update a beer by idDELETE /v1/beers/{beerid}
delete a beer by id