url : https://blogging2333.herokuapp.com/
POST /register
{
"name":"Vikalp Dwivedi",
"email": "[email protected]",
"password": "Vikalp@1234"
}
Success (Status Code 200)
{
"status": "Registration Successfull",
"user": [
{
"name": "Vikalp Dwivedi",
"email": "[email protected]",
"password": "Vikalp@1234",
}
]
}
Failure (Status Code 401)
{
"status": "Something Went Wrong",
error: error
}
Post /createBlog
{
"title": "title",
"discription": "discription",
"labels": ["label1" , "label2"]
}
Success (Status code 200)
{
"status": "Blogs Successfully Saved",
"message": "Posted Successfully",
"post" : {
"title" : "title",
"description" : "description",
"labels" : "lables"
}
}
Failure (Status Code 401)
{
"status": "Error in Saving Blog",
error: error
}
Get /allBlogs
Success (Status Code 200)
{
"status": "Successfully get all blogs by popularity",
"blogs" : blogs
}
Failure (Status Code 401)
{
"status": "Error Occured during fetching all blogs",
error : error
}
GET /search?author=author&title=title
Success (Status Code 200)
{
"status" : "Success",
"message": "Search Successfully"
"blog" : response
}
Failure (Status Code 401)
{
"status" : "Error",
"message" : "Author or Title name is not Correct"
}
POST /publish
Success (Status Code 200)
{
"status" : "Successfully Published"
}
Failure (Status Code 401)
{
"status": "Something went wrong in Publishing",
"message" : error
}
GET /blogDetails
{
headers : {
"blogid" : blogid,
}
}
Success (Status Code 200)
{
"status" : "Success",
"blog" : blogDetails
}
Failure (Status Code 401)
{
status : "Failed"
}
Post /like
{
headers : {
"blogid" : blogid,
"authorid" : authorid
}
}
Success (Status Code 200)
{
status : 'Liked Successfully' or 'Unliked Successfully'
}
Failure (Status Code 401)
{
status : "Error Occured",
}