|
6 | 6 | <section class="route"> |
7 | 7 | <div class="primary"> |
8 | 8 | <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> |
10 | 10 | <table class="attributes"> |
11 | 11 | <tr id="schema-date"> |
12 | 12 | <td> |
|
134 | 134 | <p class="read-only">Read only</p> |
135 | 135 | <p class="context">Context: <code>view</code>, <code>edit</code>, <code>embed</code></p> |
136 | 136 | </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> |
137 | 161 | </tr> |
138 | 162 | <tr id="schema-title"> |
139 | 163 | <td> |
|
201 | 225 | <td> |
202 | 226 | <p>The theme file to use to display the object.</p> |
203 | 227 | <p class="context">Context: <code>view</code>, <code>edit</code></p> |
204 | | - <p>One of: <code></code></p> |
205 | 228 | </td> |
206 | 229 | </tr> |
207 | 230 | <tr id="schema-alt_text"> |
|
305 | 328 | <div class="secondary"> |
306 | 329 | <h3>Example Request</h3> |
307 | 330 |
|
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> |
309 | 332 | </div> |
310 | 333 | </section> |
311 | 334 |
|
|
433 | 456 | <p class="default"> |
434 | 457 | Default: <code>date</code> |
435 | 458 | </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> |
437 | 460 | </td> |
438 | 461 | </tr> |
439 | 462 | <tr> |
|
498 | 521 |
|
499 | 522 | <h3>Example Request</h3> |
500 | 523 |
|
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> |
502 | 525 | </div> |
503 | 526 | </section> |
504 | 527 | <section class="route"> |
|
587 | 610 | </td> |
588 | 611 | <td> |
589 | 612 | <p>The theme file to use to display the object.</p> |
590 | | - <p>One of: <code></code></p> |
591 | | - </td> |
| 613 | + </td> |
592 | 614 | </tr> |
593 | 615 | <tr> |
594 | 616 | <td> |
|
666 | 688 |
|
667 | 689 | <h3>Example Request</h3> |
668 | 690 |
|
669 | | - <code>$ curl http://demo.wp-api.org/wp-json/wp/v2/media/<id></code> |
| 691 | + <code>$ curl https://example.com/wp-json/wp/v2/media/<id></code> |
670 | 692 | </div> |
671 | 693 | </section> |
672 | 694 | <section class="route"> |
|
763 | 785 | </td> |
764 | 786 | <td> |
765 | 787 | <p>The theme file to use to display the object.</p> |
766 | | - <p>One of: <code></code></p> |
767 | | - </td> |
| 788 | + </td> |
768 | 789 | </tr> |
769 | 790 | <tr> |
770 | 791 | <td> |
|
842 | 863 |
|
843 | 864 | <h3>Example Request</h3> |
844 | 865 |
|
845 | | - <code>$ curl -X DELETE http://demo.wp-api.org/wp-json/wp/v2/media/<id></code> |
| 866 | + <code>$ curl -X DELETE https://example.com/wp-json/wp/v2/media/<id></code> |
846 | 867 | </div> |
847 | 868 | </section> |
848 | 869 | </div> |
0 commit comments