A simple Blog API with CRUD operations made using Express.js and MongoDB
This API is hosted on Heroku: https://blog1api.herokuapp.com/
MongoDB database is hosted on MongoDB Atlas (Shared) (M0 Sandbox)
Create a post
POST https://blog1api.herokuapp.com/posts
Request body contains the post in JSON format
{
"title" : "Catchy Blog Title",
"author" : "Mr. Author",
"content" : "Hello, World!"
}
Get a Post by its title
GET https://blog1api.herokuapp.com/posts?title=Catchy+Blog+Title
Returns the list of all posts if no query passed
GET https://blog1api.herokuapp.com/posts
Deleting a post
DELETE https://blog1api.herokuapp.com/posts?title=Catchy+Blog+Title
Updating a post
PATCH https://blog1api.herokuapp.com/posts?title=Catchy+Blog+Title
The new post should be passed as request body in JSON format