48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"editorState": {
|
|
"root": {
|
|
"children": [
|
|
{
|
|
"format": "",
|
|
"type": "block",
|
|
"version": 2,
|
|
"fields": {
|
|
"blockType": "restExamples",
|
|
"data": [
|
|
{
|
|
"operation": "Find",
|
|
"method": "GET",
|
|
"path": "/api/{collection-slug}",
|
|
"description": "Find paginated documents",
|
|
"example": {
|
|
"slug": "getCollection",
|
|
"req": true,
|
|
"res": {
|
|
"paginated": true,
|
|
"data": {
|
|
"id": "644a5c24cc1383022535fc7c",
|
|
"title": "Home",
|
|
"content": "REST API examples",
|
|
"slug": "home",
|
|
"createdAt": "2023-04-27T11:27:32.419Z",
|
|
"updatedAt": "2023-04-27T11:27:32.419Z"
|
|
}
|
|
},
|
|
"drawerContent": "\n#### Heading\n\nOne `two` three\n\n- [sort](/docs/queries/overview#sort) - sort by field\n- [where](/docs/queries/overview) - pass a where query to constrain returned documents\n\n```ts\nconst a = 1\nconst b = 2\nconst c = 3\nconst d = 4\n```\n"
|
|
}
|
|
}
|
|
],
|
|
"id": "6771f28d009a850b8401645e"
|
|
}
|
|
}
|
|
],
|
|
"direction": null,
|
|
"format": "",
|
|
"indent": 0,
|
|
"type": "root",
|
|
"version": 1
|
|
}
|
|
},
|
|
"frontMatter": []
|
|
}
|