A REST blog api to make crud operations using sequelize transactions
Make a MySQL database with the name "node_blogs"
Inside config/db.js
use your database credentials
Run the following command
npm install
npm start
URL | Method | Parameter | Description |
---|---|---|---|
/blogs | GET | - | View all Blog Posts |
/blogs/add | POST | - | Add a blog to the DB |
/blogs/{id} | DELETE | id | Delete a particular blog with given id |