curl --request POST \
--url https://jsonplaceholder.typicode.com/posts \
--header 'Content-Type: application/json' \
--data '{
"title": "foo",
"body": "bar",
"userId": "1",
}'
{
"title": "foo",
"body": "bar",
"userId": 1,
"id": 101
}
Endpoint Examples
Create User
This endpoint creates the userid
POST
/
posts
curl --request POST \
--url https://jsonplaceholder.typicode.com/posts \
--header 'Content-Type: application/json' \
--data '{
"title": "foo",
"body": "bar",
"userId": "1",
}'
{
"title": "foo",
"body": "bar",
"userId": 1,
"id": 101
}
Request Body Parameters
string
required
This is the title of the body
string
This is the body of the user
integer
required
This is the id of the user
Response Body Parameters
string
This is the title of the body
string
This is the body of the user
integer
This is the id of the user
curl --request POST \
--url https://jsonplaceholder.typicode.com/posts \
--header 'Content-Type: application/json' \
--data '{
"title": "foo",
"body": "bar",
"userId": "1",
}'
{
"title": "foo",
"body": "bar",
"userId": 1,
"id": 101
}