https://restful-api-for-simple-blog-platform.onrender.com
email : usraising@gmail.com
password : 1
post method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/auth/register
formData : {
"email":"xxxx",
"name":"xxxx",
"password":"xxxx"
}
patch method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/auth/confirm/:id
Note: ID can be found in conformation mail which was send during registration time
post method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/auth/login
formData : {
"email":"xxxx",
"password":"xxxx"
}
Note: once logged in Token and user data will be share, use the token for authorization while commenting and post.
put method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/auth/forgotPassword
formData : {
"email":"xxxx"
}
Note: Forgot reset link will be shared to register mail.
patch method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/auth/resetPassword/:resetToken
formData : {
"password":"xxxx"
}
Note: resetToken can be found in mail.
get method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts
Note: token need to be passed as Authorization in Headers for getting all posts.
headers: {
authorization: `bearer ${token}`,
},
get method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts/:postid
Note: token need to be passed as Authorization in Headers for getting all posts and also postId need to passed in Params.
headers: {
authorization: `bearer ${token}`,
},
post method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts
Note: token need to be passed as Authorization in Headers for creating new posts.
formData : {
"userId":"xxxx",
"description":"xxxx"
}
headers: {
authorization: `bearer ${token}`,
},
patch method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts/:postid
Note: token need to be passed as Authorization in Headers for creating new posts. And also postid need to passed as params.
formData : {
"description":"xxxx"
}
headers: {
authorization: `bearer ${token}`,
},
delete method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts/:postid
Note: token need to be passed as Authorization in Headers for creating new posts. And also postid need to passed as params.
headers: {
authorization: `bearer ${token}`,
},
get method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts/comments/:postid
Note: token need to be passed as Authorization in Headers for creating new posts. And also postid need to passed as params.
headers: {
authorization: `bearer ${token}`,
},
post method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts/comments/:postid
Note: token need to be passed as Authorization in Headers for creating new posts. And also postid need to passed as params.
formData : {
"comment":"xxxx"
}
headers: {
authorization: `bearer ${token}`,
},
patch method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts/comments/:commentid
Note: token need to be passed as Authorization in Headers for creating new posts. And also commentid need to passed as params.
formData : {
"comment":"xxxx"
}
headers: {
authorization: `bearer ${token}`,
},
delete method:
endpoint: https://restful-api-for-simple-blog-platform.onrender.com/posts/comments/:commentid
Note: token need to be passed as Authorization in Headers for creating new posts. And also commentid need to passed as params.
headers: {
authorization: `bearer ${token}`,
},