易图设计
API PlaygroundPosts

Create a post

JSONPlaceholder fakes the create — it echoes your body with a new `id`.

POST
/posts

JSONPlaceholder fakes the create — it echoes your body with a new id.

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

curl -X POST "https://example.com/posts" \  -H "Content-Type: application/json" \  -d '{    "title": "Hello Fumadocs",    "body": "Sent from the OpenAPI playground",    "userId": 1  }'
{  "title": "string",  "body": "string",  "userId": 0,  "id": 0}