Create a post
POST
https://jsonplaceholder.typicode.com
/posts
Create a new post
Request Body
userIdinteger · requiredThe ID of the user creating the post
titlestring · requiredThe title of the post
bodystring · requiredThe content of the post
Responses
Post created successfully
idinteger · requiredThe post ID
userIdinteger · requiredThe ID of the user who created the post
titlestring · requiredThe title of the post
bodystring · requiredThe content of the post
Update post
PUT
https://jsonplaceholder.typicode.com
/posts/{id}
Update an existing post
path Parameters
idinteger · requiredPost ID
Request Body
userIdinteger · requiredThe ID of the user creating the post
titlestring · requiredThe title of the post
bodystring · requiredThe content of the post
Responses
Post updated successfully
idinteger · requiredThe post ID
userIdinteger · requiredThe ID of the user who created the post
titlestring · requiredThe title of the post
bodystring · requiredThe content of the post
Get post comments
GET
https://jsonplaceholder.typicode.com
/posts/{id}/comments
Retrieve all comments for a specific post
path Parameters
idinteger · requiredPost ID
Responses
Successful response
idinteger · requiredThe comment ID
postIdinteger · requiredThe ID of the post this comment belongs to
namestring · requiredThe name of the commenter
emailstring · email · requiredThe email of the commenter
bodystring · requiredThe content of the comment