diasjuniorr / go-beer

Beer API developed in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 beer
  • GET /v1/beers list all beers
  • GET /v1/beers/{beerId} get beer by id
  • PUT /v1/beers/{beerid} update a beer by id
  • DELETE /v1/beers/{beerid} delete a beer by id

About

Beer API developed in Go


Languages

Language:Go 88.1%Language:HTML 11.8%Language:Shell 0.1%