hellokvn / go-fiber-api-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple API in Go with Fiber and Docker

This repository is part of my article on Medium:
Build a Simple API in Go with Fiber and Docker

Docker

Clone this repository and run:

docker-compose up

You can then hit the following endpoints:

Method Route Body
GET /products
GET /products/:id
POST /products {"name": "iPhone", "stock": 10, "price": 99 }
DELETE /products/:id
PUT /products/:id {"name": "iPhone", "stock": 10, "price": 99 }

About


Languages

Language:Go 92.6%Language:Makefile 3.3%Language:Dockerfile 2.3%Language:Shell 1.7%