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
}