JSON Placeholder (0.1.0)

Download OpenAPI specification:Download

Free fake API for testing and prototyping.

posts

Returns all posts

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "userId": 0
}

Create a new post

Request Body schema: application/json
id
number

ID of the post

title
string

Title of the post

body
string

Body of the post

userId
number

ID of the user who created the post

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "userId": 0
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "userId": 0
}

post

Get a single post

path Parameters
id
required
string

ID of the post

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "userId": 0
}

Update a post

path Parameters
id
required
string

ID of the post

Request Body schema: application/json
id
number

ID of the post

title
string

Title of the post

body
string

Body of the post

userId
number

ID of the user who created the post

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "userId": 0
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "title": "string",
  • "body": "string",
  • "userId": 0
}

Delete a post

path Parameters
id
required
string

ID of the post

Responses

Response samples

Content type
application/json
{ }