Setup Blog Management Module
npx sequelize-cli db:migrate
npx sequelize db:seed:all
Blog management postman collection is added in postman folder.
- Signup : POST /api/auth/register
- User: POST /api/auth/login
- Add Blog : GET /api/blogs
- Get All Blogs : GET /api/blogs/:id
- Get Specific Blog : POST /api/blogs
- Update Blog : PUT /api/blogs/:id
- Update Blog : DELETE /api/blogs/:id
- Add Blog Comment : POST /api/blogs/:id/comments
- Get Blog specific Comments : GET /api/blogs/:id/comments
- Delete Blog Commets : DELETE /api/blogs/:id/comments/:commentId
npm start