my first touch with go language
- Fiber Web framework
- GORM ORM for working with database
- Air Live reload
- PostgreSQL Database
docker compose up
air
go run main.go
prefix /api
| Method | Route | Body |
|---|---|---|
| GET | /categories | |
| GET | /categories/:id | |
| POST | /categories | {"name": "scifi" } |
| PUT | /categories/:id | {"name": "drama" } |
| Method | Route | Body |
|---|---|---|
| GET | /books | |
| GET | /books/:id | |
| POST | /books | {"name": "harry potter" |
| PUT | /books/:id | {"name": "harry potter 2", "categories": [1, 2] } } |