module
0.0.0-20231014043232-36cb62b775ab
Repository: https://github.com/imranzahoor/blog-api.git
Documentation: pkg.go.dev
# README
Blog REST API
Run Develeopment
For runing development please make sure that nodejs file watcher nodemon
is installed
make run-dev
Run Production
make run
Build
make build
Article Endpoints
List
curl -X GET http://localhost:5000/artilce/
Create
curl -X POST http://localhost:5000/article/ -d '{"title":"article 1", "description":"article 1 description"}'
Update
curl -X PUT http://localhost:5000/article/1 -d '{"title":"article 1 change", "description":"article 1 description change"}'
Delete
curl -X PUT http://localhost:5000/article/1
Todos
- Refactor Storage code to merge in repository layer
- Add structured logging
- update server for gracefull shutdown
- add code for enviornment variable reading
- use context in all layers to cancel request
- add unit tests for all functions in all layers