Categorygithub.com/ImranZahoor/blog-api
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

  1. Refactor Storage code to merge in repository layer
  2. Add structured logging
  3. update server for gracefull shutdown
  4. add code for enviornment variable reading
  5. use context in all layers to cancel request
  6. add unit tests for all functions in all layers

# Packages

No description provided by the author
No description provided by the author