Simple CRUD Operations for bookStore.
Gin by Example !
For ENV,
# Golang ENV (.env)
GIN_MODE=release
PORT=<your port>
go mod download
go build -o gin-bookstore .
./gin-bookstore
Methods | Endpoints | Description |
---|---|---|
GET | / | Hello World |
GET | /books | Get All books |
POST | /books | Create a book |
GET | /books/:id | Get book by id |
PATCH | /books/:id | Update book by id |
DELETE | /books/:id | Delete book by id |
- Injamul Mohammad Mollah mrinjamul@gmail.com
- under MIT license