CodeNight-Ethiopia / codenight-frontend

Website for the Codenight Developer Community
https://codenight.et
MIT License
46 stars 27 forks source link

Api setup and connect with mongodb #34

Open bakiwebdev opened 1 year ago

bakiwebdev commented 1 year ago

image

Get all blogs

Method: GET
URL: http://localhost:3000/api/blog

Get blog by ID

Method: GET
URL: http://localhost:3000/api/blog?id=<blog-id>

Filter blogs by tag

Method: GET
URL: http://localhost:3000/api/blog?tag=<tag-name>

Filter blogs by publisher

Method: GET
URL: http://localhost:3000/api/blog?publisher=<publisher-name>

Create a new blog

Method: POST
URL: http://localhost:3000/api/blog
Body: Raw JSON (application/json)
k4l3b4 commented 1 year ago

will start creating the ui as soon as this is merged