Create a post
POST
https://jsonplaceholder.typicode.com
/posts
Create a new post
Request Body
userId
integer · requiredThe ID of the user creating the post
title
string · requiredThe title of the post
body
string · requiredThe content of the post
Responses
id
integer · requiredThe post ID
userId
integer · requiredThe ID of the user who created the post
title
string · requiredThe title of the post
body
string · requiredThe content of the post
Get post by ID
GET
https://jsonplaceholder.typicode.com
/posts/{id}
Update post
PUT
https://jsonplaceholder.typicode.com
/posts/{id}
Update an existing post
path Parameters
id
integer · requiredPost ID
Request Body
userId
integer · requiredThe ID of the user creating the post
title
string · requiredThe title of the post
body
string · requiredThe content of the post
Responses
id
integer · requiredThe post ID
userId
integer · requiredThe ID of the user who created the post
title
string · requiredThe title of the post
body
string · 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
id
integer · requiredPost ID
Responses
id
integer · requiredThe comment ID
postId
integer · requiredThe ID of the post this comment belongs to
name
string · requiredThe name of the commenter
email
string · email · requiredThe email of the commenter
body
string · requiredThe content of the comment