Skip to content

Commit 661e2f5

Browse files
committed
Regenerate reference documentation
1 parent 848ea13 commit 661e2f5

18 files changed

+2080
-76
lines changed

reference/categories.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<div class="secondary">
121121
<h3>Example Request</h3>
122122

123-
<code>$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/categories</code>
123+
<code>$ curl -X OPTIONS -i https://example.com/wp-json/wp/v2/categories</code>
124124
</div>
125125
</section>
126126

@@ -208,7 +208,7 @@
208208
<p class="default">
209209
Default: <code>name</code>
210210
</p>
211-
<p>One of: <code>id</code>, <code>include</code>, <code>name</code>, <code>slug</code>, <code>term_group</code>, <code>description</code>, <code>count</code></p>
211+
<p>One of: <code>id</code>, <code>include</code>, <code>name</code>, <code>slug</code>, <code>include_slugs</code>, <code>term_group</code>, <code>description</code>, <code>count</code></p>
212212
</td>
213213
</tr>
214214
<tr>
@@ -253,7 +253,7 @@
253253

254254
<h3>Example Request</h3>
255255

256-
<code>$ curl http://demo.wp-api.org/wp-json/wp/v2/categories</code>
256+
<code>$ curl https://example.com/wp-json/wp/v2/categories</code>
257257
</div>
258258
</section>
259259
<section class="route">
@@ -348,7 +348,7 @@
348348

349349
<h3>Example Request</h3>
350350

351-
<code>$ curl http://demo.wp-api.org/wp-json/wp/v2/categories/&lt;id&gt;</code>
351+
<code>$ curl https://example.com/wp-json/wp/v2/categories/&lt;id&gt;</code>
352352
</div>
353353
</section>
354354
<section class="route">
@@ -448,7 +448,7 @@
448448

449449
<h3>Example Request</h3>
450450

451-
<code>$ curl -X DELETE http://demo.wp-api.org/wp-json/wp/v2/categories/&lt;id&gt;</code>
451+
<code>$ curl -X DELETE https://example.com/wp-json/wp/v2/categories/&lt;id&gt;</code>
452452
</div>
453453
</section>
454454
</div>

reference/comments.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
<div class="secondary">
218218
<h3>Example Request</h3>
219219

220-
<code>$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/comments</code>
220+
<code>$ curl -X OPTIONS -i https://example.com/wp-json/wp/v2/comments</code>
221221
</div>
222222
</section>
223223

@@ -420,7 +420,7 @@
420420

421421
<h3>Example Request</h3>
422422

423-
<code>$ curl http://demo.wp-api.org/wp-json/wp/v2/comments</code>
423+
<code>$ curl https://example.com/wp-json/wp/v2/comments</code>
424424
</div>
425425
</section>
426426
<section class="route">
@@ -584,7 +584,7 @@
584584

585585
<h3>Example Request</h3>
586586

587-
<code>$ curl http://demo.wp-api.org/wp-json/wp/v2/comments/&lt;id&gt;</code>
587+
<code>$ curl https://example.com/wp-json/wp/v2/comments/&lt;id&gt;</code>
588588
</div>
589589
</section>
590590
<section class="route">
@@ -756,7 +756,7 @@
756756

757757
<h3>Example Request</h3>
758758

759-
<code>$ curl -X DELETE http://demo.wp-api.org/wp-json/wp/v2/comments/&lt;id&gt;</code>
759+
<code>$ curl -X DELETE https://example.com/wp-json/wp/v2/comments/&lt;id&gt;</code>
760760
</div>
761761
</section>
762762
</div>

reference/media.md

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<section class="route">
77
<div class="primary">
88
<h2>Schema</h2>
9-
<p>The schema defines all the fields that exist for an attachment object.</p>
9+
<p>The schema defines all the fields that exist for a attachment object.</p>
1010
<table class="attributes">
1111
<tr id="schema-date">
1212
<td>
@@ -134,6 +134,30 @@
134134
<p class="read-only">Read only</p>
135135
<p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p>
136136
</td>
137+
</tr>
138+
<tr id="schema-permalink_template">
139+
<td>
140+
<code>permalink_template</code><br />
141+
<span class="type">
142+
string </span>
143+
</td>
144+
<td>
145+
<p>Permalink template for the object.</p>
146+
<p class="read-only">Read only</p>
147+
<p class="context">Context: <code>edit</code></p>
148+
</td>
149+
</tr>
150+
<tr id="schema-generated_slug">
151+
<td>
152+
<code>generated_slug</code><br />
153+
<span class="type">
154+
string </span>
155+
</td>
156+
<td>
157+
<p>Slug automatically generated from the object title.</p>
158+
<p class="read-only">Read only</p>
159+
<p class="context">Context: <code>edit</code></p>
160+
</td>
137161
</tr>
138162
<tr id="schema-title">
139163
<td>
@@ -201,7 +225,6 @@
201225
<td>
202226
<p>The theme file to use to display the object.</p>
203227
<p class="context">Context: <code>view</code>, <code>edit</code></p>
204-
<p>One of: <code></code></p>
205228
</td>
206229
</tr>
207230
<tr id="schema-alt_text">
@@ -305,7 +328,7 @@
305328
<div class="secondary">
306329
<h3>Example Request</h3>
307330

308-
<code>$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/media</code>
331+
<code>$ curl -X OPTIONS -i https://example.com/wp-json/wp/v2/media</code>
309332
</div>
310333
</section>
311334

@@ -433,7 +456,7 @@
433456
<p class="default">
434457
Default: <code>date</code>
435458
</p>
436-
<p>One of: <code>author</code>, <code>date</code>, <code>id</code>, <code>include</code>, <code>modified</code>, <code>parent</code>, <code>relevance</code>, <code>slug</code>, <code>title</code></p>
459+
<p>One of: <code>author</code>, <code>date</code>, <code>id</code>, <code>include</code>, <code>modified</code>, <code>parent</code>, <code>relevance</code>, <code>slug</code>, <code>include_slugs</code>, <code>title</code></p>
437460
</td>
438461
</tr>
439462
<tr>
@@ -498,7 +521,7 @@
498521

499522
<h3>Example Request</h3>
500523

501-
<code>$ curl http://demo.wp-api.org/wp-json/wp/v2/media</code>
524+
<code>$ curl https://example.com/wp-json/wp/v2/media</code>
502525
</div>
503526
</section>
504527
<section class="route">
@@ -587,8 +610,7 @@
587610
</td>
588611
<td>
589612
<p>The theme file to use to display the object.</p>
590-
<p>One of: <code></code></p>
591-
</td>
613+
</td>
592614
</tr>
593615
<tr>
594616
<td>
@@ -666,7 +688,7 @@
666688

667689
<h3>Example Request</h3>
668690

669-
<code>$ curl http://demo.wp-api.org/wp-json/wp/v2/media/&lt;id&gt;</code>
691+
<code>$ curl https://example.com/wp-json/wp/v2/media/&lt;id&gt;</code>
670692
</div>
671693
</section>
672694
<section class="route">
@@ -763,8 +785,7 @@
763785
</td>
764786
<td>
765787
<p>The theme file to use to display the object.</p>
766-
<p>One of: <code></code></p>
767-
</td>
788+
</td>
768789
</tr>
769790
<tr>
770791
<td>
@@ -842,7 +863,7 @@
842863

843864
<h3>Example Request</h3>
844865

845-
<code>$ curl -X DELETE http://demo.wp-api.org/wp-json/wp/v2/media/&lt;id&gt;</code>
866+
<code>$ curl -X DELETE https://example.com/wp-json/wp/v2/media/&lt;id&gt;</code>
846867
</div>
847868
</section>
848869
</div>

0 commit comments

Comments
 (0)