Go Beer API
Table of Contents
About
Simple API showing how to create a CRUD API with Go and sqlite.
Getting Started
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.
Installing
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
Usage
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