JSONPlaceholder API
Endpoint:
https://jsonplaceholder.typicode.com
Create a post
POST
https://jsonplaceholder.typicode.com
/posts
Update post
PUT
https://jsonplaceholder.typicode.com
/posts/{id}
Update an existing post
path Parameters
id
integerrequiredPost ID
Request Body
userId
integerThe ID of the user creating the post
title
stringThe title of the post
body
stringThe content of the post
Responses
id
integerThe post ID
userId
integerThe ID of the user who created the post
title
stringThe title of the post
body
stringThe 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
integerrequiredPost ID
Responses
id
integerThe comment ID
postId
integerThe ID of the post this comment belongs to
name
stringThe name of the commenter
email
stringThe email of the commenter
Format:email
body
stringThe content of the comment
object[]