Skip to content

Commit 8da2f57

Browse files
committed
Regenerate the documentation and fix broken asset links
1 parent e4b3b88 commit 8da2f57

18 files changed

+7952
-826
lines changed

_data/attachment.json

+518-130
Large diffs are not rendered by default.

_data/category.json

+136-46
Large diffs are not rendered by default.

_data/comment.json

+232-121
Large diffs are not rendered by default.

_data/page-revision.json

+1,086-48
Large diffs are not rendered by default.

_data/page.json

+529-112
Large diffs are not rendered by default.

_data/post-revision.json

+1,119-48
Large diffs are not rendered by default.

_data/post.json

+847-119
Large diffs are not rendered by default.

_data/rendered-block.json

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"name": "rendered-block",
3+
"routes": {
4+
"/wp/v2/block-renderer/<name>": {
5+
"namespace": "wp/v2",
6+
"methods": [
7+
"GET"
8+
],
9+
"endpoints": [
10+
{
11+
"methods": [
12+
"GET"
13+
],
14+
"args": {
15+
"name": {
16+
"required": false,
17+
"description": "Unique registered name for the block.",
18+
"type": "string"
19+
},
20+
"context": {
21+
"required": false,
22+
"default": "view",
23+
"enum": [
24+
"edit"
25+
],
26+
"description": "Scope under which the request is made; determines fields present in response.",
27+
"type": "string"
28+
},
29+
"attributes": {
30+
"required": false,
31+
"default": [
32+
33+
],
34+
"description": "Attributes for core/tag-cloud block",
35+
"type": "object"
36+
},
37+
"post_id": {
38+
"required": false,
39+
"description": "ID of the post context.",
40+
"type": "integer"
41+
}
42+
}
43+
}
44+
],
45+
"schema": {
46+
"$schema": "http://json-schema.org/schema#",
47+
"title": "rendered-block",
48+
"type": "object",
49+
"properties": {
50+
"rendered": {
51+
"description": "The rendered block.",
52+
"type": "string",
53+
"required": true,
54+
"context": [
55+
"edit"
56+
]
57+
}
58+
}
59+
},
60+
"nicename": "/wp/v2/block-renderer/&lt;name&gt;"
61+
}
62+
},
63+
"schema": {
64+
"$schema": "http://json-schema.org/schema#",
65+
"title": "rendered-block",
66+
"type": "object",
67+
"properties": {
68+
"rendered": {
69+
"description": "The rendered block.",
70+
"type": "string",
71+
"required": true,
72+
"context": [
73+
"edit"
74+
]
75+
}
76+
}
77+
}
78+
}

_data/search-result.json

+194
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
{
2+
"name": "search-result",
3+
"routes": {
4+
"/wp/v2/search": {
5+
"namespace": "wp/v2",
6+
"methods": [
7+
"GET"
8+
],
9+
"endpoints": [
10+
{
11+
"methods": [
12+
"GET"
13+
],
14+
"args": {
15+
"context": {
16+
"required": false,
17+
"default": "view",
18+
"enum": [
19+
"view",
20+
"embed"
21+
],
22+
"description": "Scope under which the request is made; determines fields present in response.",
23+
"type": "string"
24+
},
25+
"page": {
26+
"required": false,
27+
"default": 1,
28+
"description": "Current page of the collection.",
29+
"type": "integer"
30+
},
31+
"per_page": {
32+
"required": false,
33+
"default": 10,
34+
"description": "Maximum number of items to be returned in result set.",
35+
"type": "integer"
36+
},
37+
"search": {
38+
"required": false,
39+
"description": "Limit results to those matching a string.",
40+
"type": "string"
41+
},
42+
"type": {
43+
"required": false,
44+
"default": "post",
45+
"enum": [
46+
"post"
47+
],
48+
"description": "Limit results to items of an object type.",
49+
"type": "string"
50+
},
51+
"subtype": {
52+
"required": false,
53+
"default": "any",
54+
"description": "Limit results to items of one or more object subtypes.",
55+
"type": "array",
56+
"items": {
57+
"enum": [
58+
"post",
59+
"page",
60+
"any"
61+
],
62+
"type": "string"
63+
}
64+
}
65+
}
66+
}
67+
],
68+
"schema": {
69+
"$schema": "http://json-schema.org/draft-04/schema#",
70+
"title": "search-result",
71+
"type": "object",
72+
"properties": {
73+
"id": {
74+
"description": "Unique identifier for the object.",
75+
"type": "integer",
76+
"context": [
77+
"view",
78+
"embed"
79+
],
80+
"readonly": true
81+
},
82+
"title": {
83+
"description": "The title for the object.",
84+
"type": "string",
85+
"context": [
86+
"view",
87+
"embed"
88+
],
89+
"readonly": true
90+
},
91+
"url": {
92+
"description": "URL to the object.",
93+
"type": "string",
94+
"format": "uri",
95+
"context": [
96+
"view",
97+
"embed"
98+
],
99+
"readonly": true
100+
},
101+
"type": {
102+
"description": "Object type.",
103+
"type": "string",
104+
"enum": [
105+
"post"
106+
],
107+
"context": [
108+
"view",
109+
"embed"
110+
],
111+
"readonly": true
112+
},
113+
"subtype": {
114+
"description": "Object subtype.",
115+
"type": "string",
116+
"enum": [
117+
"post",
118+
"page"
119+
],
120+
"context": [
121+
"view",
122+
"embed"
123+
],
124+
"readonly": true
125+
}
126+
}
127+
},
128+
"_links": {
129+
"self": "https://demo.wp-api.org/wp-json/wp/v2/search"
130+
},
131+
"nicename": "/wp/v2/search"
132+
}
133+
},
134+
"schema": {
135+
"$schema": "http://json-schema.org/draft-04/schema#",
136+
"title": "search-result",
137+
"type": "object",
138+
"properties": {
139+
"id": {
140+
"description": "Unique identifier for the object.",
141+
"type": "integer",
142+
"context": [
143+
"view",
144+
"embed"
145+
],
146+
"readonly": true
147+
},
148+
"title": {
149+
"description": "The title for the object.",
150+
"type": "string",
151+
"context": [
152+
"view",
153+
"embed"
154+
],
155+
"readonly": true
156+
},
157+
"url": {
158+
"description": "URL to the object.",
159+
"type": "string",
160+
"format": "uri",
161+
"context": [
162+
"view",
163+
"embed"
164+
],
165+
"readonly": true
166+
},
167+
"type": {
168+
"description": "Object type.",
169+
"type": "string",
170+
"enum": [
171+
"post"
172+
],
173+
"context": [
174+
"view",
175+
"embed"
176+
],
177+
"readonly": true
178+
},
179+
"subtype": {
180+
"description": "Object subtype.",
181+
"type": "string",
182+
"enum": [
183+
"post",
184+
"page"
185+
],
186+
"context": [
187+
"view",
188+
"embed"
189+
],
190+
"readonly": true
191+
}
192+
}
193+
}
194+
}

0 commit comments

Comments
 (0)