<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[58216] trunk/tests/qunit/fixtures/wp-api-generated.js: Build/Test Tools: Update REST API fixtures after [58211].</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/58216">58216</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/58216","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>swissspidy</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2024-05-27 19:03:49 +0000 (Mon, 27 May 2024)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Build/Test Tools: Update REST API fixtures after <a href="https://core.trac.wordpress.org/changeset/58211">[58211]</a>.
See <a href="https://core.trac.wordpress.org/ticket/41172">#41172</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunktestsqunitfixtureswpapigeneratedjs">trunk/tests/qunit/fixtures/wp-api-generated.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunktestsqunitfixtureswpapigeneratedjs"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/tests/qunit/fixtures/wp-api-generated.js</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/tests/qunit/fixtures/wp-api-generated.js 2024-05-27 18:39:53 UTC (rev 58215)
+++ trunk/tests/qunit/fixtures/wp-api-generated.js 2024-05-27 19:03:49 UTC (rev 58216)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -2717,6 +2717,772 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> ]
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "/wp/v2/media": {
+ "namespace": "wp/v2",
+ "methods": [
+ "GET",
+ "POST"
+ ],
+ "endpoints": [
+ {
+ "methods": [
+ "GET"
+ ],
+ "args": {
+ "context": {
+ "description": "Scope under which the request is made; determines fields present in response.",
+ "type": "string",
+ "enum": [
+ "view",
+ "embed",
+ "edit"
+ ],
+ "default": "view",
+ "required": false
+ },
+ "page": {
+ "description": "Current page of the collection.",
+ "type": "integer",
+ "default": 1,
+ "minimum": 1,
+ "required": false
+ },
+ "per_page": {
+ "description": "Maximum number of items to be returned in result set.",
+ "type": "integer",
+ "default": 10,
+ "minimum": 1,
+ "maximum": 100,
+ "required": false
+ },
+ "search": {
+ "description": "Limit results to those matching a string.",
+ "type": "string",
+ "required": false
+ },
+ "after": {
+ "description": "Limit response to posts published after a given ISO8601 compliant date.",
+ "type": "string",
+ "format": "date-time",
+ "required": false
+ },
+ "modified_after": {
+ "description": "Limit response to posts modified after a given ISO8601 compliant date.",
+ "type": "string",
+ "format": "date-time",
+ "required": false
+ },
+ "author": {
+ "description": "Limit result set to posts assigned to specific authors.",
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "default": [],
+ "required": false
+ },
+ "author_exclude": {
+ "description": "Ensure result set excludes posts assigned to specific authors.",
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "default": [],
+ "required": false
+ },
+ "before": {
+ "description": "Limit response to posts published before a given ISO8601 compliant date.",
+ "type": "string",
+ "format": "date-time",
+ "required": false
+ },
+ "modified_before": {
+ "description": "Limit response to posts modified before a given ISO8601 compliant date.",
+ "type": "string",
+ "format": "date-time",
+ "required": false
+ },
+ "exclude": {
+ "description": "Ensure result set excludes specific IDs.",
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "default": [],
+ "required": false
+ },
+ "include": {
+ "description": "Limit result set to specific IDs.",
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "default": [],
+ "required": false
+ },
+ "offset": {
+ "description": "Offset the result set by a specific number of items.",
+ "type": "integer",
+ "required": false
+ },
+ "order": {
+ "description": "Order sort attribute ascending or descending.",
+ "type": "string",
+ "default": "desc",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "required": false
+ },
+ "orderby": {
+ "description": "Sort collection by post attribute.",
+ "type": "string",
+ "default": "date",
+ "enum": [
+ "author",
+ "date",
+ "id",
+ "include",
+ "modified",
+ "parent",
+ "relevance",
+ "slug",
+ "include_slugs",
+ "title"
+ ],
+ "required": false
+ },
+ "parent": {
+ "description": "Limit result set to items with particular parent IDs.",
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "default": [],
+ "required": false
+ },
+ "parent_exclude": {
+ "description": "Limit result set to all items except those of a particular parent ID.",
+ "type": "array",
+ "items": {
+ "type": "integer"
+ },
+ "default": [],
+ "required": false
+ },
+ "search_columns": {
+ "default": [],
+ "description": "Array of column names to be searched.",
+ "type": "array",
+ "items": {
+ "enum": [
+ "post_title",
+ "post_content",
+ "post_excerpt"
+ ],
+ "type": "string"
+ },
+ "required": false
+ },
+ "slug": {
+ "description": "Limit result set to posts with one or more specific slugs.",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "required": false
+ },
+ "status": {
+ "default": "inherit",
+ "description": "Limit result set to posts assigned one or more statuses.",
+ "type": "array",
+ "items": {
+ "enum": [
+ "inherit",
+ "private",
+ "trash"
+ ],
+ "type": "string"
+ },
+ "required": false
+ },
+ "media_type": {
+ "default": null,
+ "description": "Limit result set to attachments of a particular media type.",
+ "type": "string",
+ "enum": [
+ "image",
+ "video",
+ "text",
+ "application",
+ "audio"
+ ],
+ "required": false
+ },
+ "mime_type": {
+ "default": null,
+ "description": "Limit result set to attachments of a particular MIME type.",
+ "type": "string",
+ "required": false
+ }
+ }
+ },
+ {
+ "methods": [
+ "POST"
+ ],
+ "args": {
+ "date": {
+ "description": "The date the post was published, in the site's timezone.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "required": false
+ },
+ "date_gmt": {
+ "description": "The date the post was published, as GMT.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "required": false
+ },
+ "slug": {
+ "description": "An alphanumeric identifier for the post unique to its type.",
+ "type": "string",
+ "required": false
+ },
+ "status": {
+ "description": "A named status for the post.",
+ "type": "string",
+ "enum": [
+ "publish",
+ "future",
+ "draft",
+ "pending",
+ "private"
+ ],
+ "required": false
+ },
+ "title": {
+ "description": "The title for the post.",
+ "type": "object",
+ "properties": {
+ "raw": {
+ "description": "Title for the post, as it exists in the database.",
+ "type": "string",
+ "context": [
+ "edit"
+ ]
+ },
+ "rendered": {
+ "description": "HTML title for the post, transformed for display.",
+ "type": "string",
+ "context": [
+ "view",
+ "edit",
+ "embed"
+ ],
+ "readonly": true
+ }
+ },
+ "required": false
+ },
+ "author": {
+ "description": "The ID for the author of the post.",
+ "type": "integer",
+ "required": false
+ },
+ "featured_media": {
+ "description": "The ID of the featured media for the post.",
+ "type": "integer",
+ "required": false
+ },
+ "comment_status": {
+ "description": "Whether or not comments are open on the post.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "required": false
+ },
+ "ping_status": {
+ "description": "Whether or not the post can be pinged.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "required": false
+ },
+ "meta": {
+ "description": "Meta fields.",
+ "type": "object",
+ "properties": [],
+ "required": false
+ },
+ "template": {
+ "description": "The theme file to use to display the post.",
+ "type": "string",
+ "required": false
+ },
+ "alt_text": {
+ "description": "Alternative text to display when attachment is not displayed.",
+ "type": "string",
+ "required": false
+ },
+ "caption": {
+ "description": "The attachment caption.",
+ "type": "object",
+ "properties": {
+ "raw": {
+ "description": "Caption for the attachment, as it exists in the database.",
+ "type": "string",
+ "context": [
+ "edit"
+ ]
+ },
+ "rendered": {
+ "description": "HTML caption for the attachment, transformed for display.",
+ "type": "string",
+ "context": [
+ "view",
+ "edit",
+ "embed"
+ ],
+ "readonly": true
+ }
+ },
+ "required": false
+ },
+ "description": {
+ "description": "The attachment description.",
+ "type": "object",
+ "properties": {
+ "raw": {
+ "description": "Description for the attachment, as it exists in the database.",
+ "type": "string",
+ "context": [
+ "edit"
+ ]
+ },
+ "rendered": {
+ "description": "HTML description for the attachment, transformed for display.",
+ "type": "string",
+ "context": [
+ "view",
+ "edit"
+ ],
+ "readonly": true
+ }
+ },
+ "required": false
+ },
+ "post": {
+ "description": "The ID for the associated post of the attachment.",
+ "type": "integer",
+ "required": false
+ }
+ }
+ }
+ ],
+ "_links": {
+ "self": "http://example.org/index.php?rest_route=/wp/v2/media"
+ }
+ },
+ "/wp/v2/media/(?P<id>[\\d]+)": {
+ "namespace": "wp/v2",
+ "methods": [
+ "GET",
+ "POST",
+ "PUT",
+ "PATCH",
+ "DELETE"
+ ],
+ "endpoints": [
+ {
+ "methods": [
+ "GET"
+ ],
+ "args": {
+ "id": {
+ "description": "Unique identifier for the post.",
+ "type": "integer",
+ "required": false
+ },
+ "context": {
+ "description": "Scope under which the request is made; determines fields present in response.",
+ "type": "string",
+ "enum": [
+ "view",
+ "embed",
+ "edit"
+ ],
+ "default": "view",
+ "required": false
+ }
+ }
+ },
+ {
+ "methods": [
+ "POST",
+ "PUT",
+ "PATCH"
+ ],
+ "args": {
+ "id": {
+ "description": "Unique identifier for the post.",
+ "type": "integer",
+ "required": false
+ },
+ "date": {
+ "description": "The date the post was published, in the site's timezone.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "required": false
+ },
+ "date_gmt": {
+ "description": "The date the post was published, as GMT.",
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time",
+ "required": false
+ },
+ "slug": {
+ "description": "An alphanumeric identifier for the post unique to its type.",
+ "type": "string",
+ "required": false
+ },
+ "status": {
+ "description": "A named status for the post.",
+ "type": "string",
+ "enum": [
+ "publish",
+ "future",
+ "draft",
+ "pending",
+ "private"
+ ],
+ "required": false
+ },
+ "title": {
+ "description": "The title for the post.",
+ "type": "object",
+ "properties": {
+ "raw": {
+ "description": "Title for the post, as it exists in the database.",
+ "type": "string",
+ "context": [
+ "edit"
+ ]
+ },
+ "rendered": {
+ "description": "HTML title for the post, transformed for display.",
+ "type": "string",
+ "context": [
+ "view",
+ "edit",
+ "embed"
+ ],
+ "readonly": true
+ }
+ },
+ "required": false
+ },
+ "author": {
+ "description": "The ID for the author of the post.",
+ "type": "integer",
+ "required": false
+ },
+ "featured_media": {
+ "description": "The ID of the featured media for the post.",
+ "type": "integer",
+ "required": false
+ },
+ "comment_status": {
+ "description": "Whether or not comments are open on the post.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "required": false
+ },
+ "ping_status": {
+ "description": "Whether or not the post can be pinged.",
+ "type": "string",
+ "enum": [
+ "open",
+ "closed"
+ ],
+ "required": false
+ },
+ "meta": {
+ "description": "Meta fields.",
+ "type": "object",
+ "properties": [],
+ "required": false
+ },
+ "template": {
+ "description": "The theme file to use to display the post.",
+ "type": "string",
+ "required": false
+ },
+ "alt_text": {
+ "description": "Alternative text to display when attachment is not displayed.",
+ "type": "string",
+ "required": false
+ },
+ "caption": {
+ "description": "The attachment caption.",
+ "type": "object",
+ "properties": {
+ "raw": {
+ "description": "Caption for the attachment, as it exists in the database.",
+ "type": "string",
+ "context": [
+ "edit"
+ ]
+ },
+ "rendered": {
+ "description": "HTML caption for the attachment, transformed for display.",
+ "type": "string",
+ "context": [
+ "view",
+ "edit",
+ "embed"
+ ],
+ "readonly": true
+ }
+ },
+ "required": false
+ },
+ "description": {
+ "description": "The attachment description.",
+ "type": "object",
+ "properties": {
+ "raw": {
+ "description": "Description for the attachment, as it exists in the database.",
+ "type": "string",
+ "context": [
+ "edit"
+ ]
+ },
+ "rendered": {
+ "description": "HTML description for the attachment, transformed for display.",
+ "type": "string",
+ "context": [
+ "view",
+ "edit"
+ ],
+ "readonly": true
+ }
+ },
+ "required": false
+ },
+ "post": {
+ "description": "The ID for the associated post of the attachment.",
+ "type": "integer",
+ "required": false
+ }
+ }
+ },
+ {
+ "methods": [
+ "DELETE"
+ ],
+ "args": {
+ "id": {
+ "description": "Unique identifier for the post.",
+ "type": "integer",
+ "required": false
+ },
+ "force": {
+ "type": "boolean",
+ "default": false,
+ "description": "Whether to bypass Trash and force deletion.",
+ "required": false
+ }
+ }
+ }
+ ]
+ },
+ "/wp/v2/media/(?P<id>[\\d]+)/post-process": {
+ "namespace": "wp/v2",
+ "methods": [
+ "POST"
+ ],
+ "endpoints": [
+ {
+ "methods": [
+ "POST"
+ ],
+ "args": {
+ "id": {
+ "description": "Unique identifier for the attachment.",
+ "type": "integer",
+ "required": false
+ },
+ "action": {
+ "type": "string",
+ "enum": [
+ "create-image-subsizes"
+ ],
+ "required": true
+ }
+ }
+ }
+ ]
+ },
+ "/wp/v2/media/(?P<id>[\\d]+)/edit": {
+ "namespace": "wp/v2",
+ "methods": [
+ "POST"
+ ],
+ "endpoints": [
+ {
+ "methods": [
+ "POST"
+ ],
+ "args": {
+ "src": {
+ "description": "URL to the edited image file.",
+ "type": "string",
+ "format": "uri",
+ "required": true
+ },
+ "modifiers": {
+ "description": "Array of image edits.",
+ "type": "array",
+ "minItems": 1,
+ "items": {
+ "description": "Image edit.",
+ "type": "object",
+ "required": [
+ "type",
+ "args"
+ ],
+ "oneOf": [
+ {
+ "title": "Rotation",
+ "properties": {
+ "type": {
+ "description": "Rotation type.",
+ "type": "string",
+ "enum": [
+ "rotate"
+ ]
+ },
+ "args": {
+ "description": "Rotation arguments.",
+ "type": "object",
+ "required": [
+ "angle"
+ ],
+ "properties": {
+ "angle": {
+ "description": "Angle to rotate clockwise in degrees.",
+ "type": "number"
+ }
+ }
+ }
+ }
+ },
+ {
+ "title": "Crop",
+ "properties": {
+ "type": {
+ "description": "Crop type.",
+ "type": "string",
+ "enum": [
+ "crop"
+ ]
+ },
+ "args": {
+ "description": "Crop arguments.",
+ "type": "object",
+ "required": [
+ "left",
+ "top",
+ "width",
+ "height"
+ ],
+ "properties": {
+ "left": {
+ "description": "Horizontal position from the left to begin the crop as a percentage of the image width.",
+ "type": "number"
+ },
+ "top": {
+ "description": "Vertical position from the top to begin the crop as a percentage of the image height.",
+ "type": "number"
+ },
+ "width": {
+ "description": "Width of the crop as a percentage of the image width.",
+ "type": "number"
+ },
+ "height": {
+ "description": "Height of the crop as a percentage of the image height.",
+ "type": "number"
+ }
+ }
+ }
+ }
+ }
+ ]
+ },
+ "required": false
+ },
+ "rotation": {
+ "description": "The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead.",
+ "type": "integer",
+ "minimum": 0,
+ "exclusiveMinimum": true,
+ "maximum": 360,
+ "exclusiveMaximum": true,
+ "required": false
+ },
+ "x": {
+ "description": "As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead.",
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100,
+ "required": false
+ },
+ "y": {
+ "description": "As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead.",
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100,
+ "required": false
+ },
+ "width": {
+ "description": "As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead.",
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100,
+ "required": false
+ },
+ "height": {
+ "description": "As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead.",
+ "type": "number",
+ "minimum": 0,
+ "maximum": 100,
+ "required": false
+ }
+ }
+ }
+ ]
+ },
</ins><span class="cx" style="display: block; padding: 0 10px"> "/wp/v2/menu-items": {
</span><span class="cx" style="display: block; padding: 0 10px"> "namespace": "wp/v2",
</span><span class="cx" style="display: block; padding: 0 10px"> "methods": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -7152,772 +7918,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> ]
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "/wp/v2/media": {
- "namespace": "wp/v2",
- "methods": [
- "GET",
- "POST"
- ],
- "endpoints": [
- {
- "methods": [
- "GET"
- ],
- "args": {
- "context": {
- "description": "Scope under which the request is made; determines fields present in response.",
- "type": "string",
- "enum": [
- "view",
- "embed",
- "edit"
- ],
- "default": "view",
- "required": false
- },
- "page": {
- "description": "Current page of the collection.",
- "type": "integer",
- "default": 1,
- "minimum": 1,
- "required": false
- },
- "per_page": {
- "description": "Maximum number of items to be returned in result set.",
- "type": "integer",
- "default": 10,
- "minimum": 1,
- "maximum": 100,
- "required": false
- },
- "search": {
- "description": "Limit results to those matching a string.",
- "type": "string",
- "required": false
- },
- "after": {
- "description": "Limit response to posts published after a given ISO8601 compliant date.",
- "type": "string",
- "format": "date-time",
- "required": false
- },
- "modified_after": {
- "description": "Limit response to posts modified after a given ISO8601 compliant date.",
- "type": "string",
- "format": "date-time",
- "required": false
- },
- "author": {
- "description": "Limit result set to posts assigned to specific authors.",
- "type": "array",
- "items": {
- "type": "integer"
- },
- "default": [],
- "required": false
- },
- "author_exclude": {
- "description": "Ensure result set excludes posts assigned to specific authors.",
- "type": "array",
- "items": {
- "type": "integer"
- },
- "default": [],
- "required": false
- },
- "before": {
- "description": "Limit response to posts published before a given ISO8601 compliant date.",
- "type": "string",
- "format": "date-time",
- "required": false
- },
- "modified_before": {
- "description": "Limit response to posts modified before a given ISO8601 compliant date.",
- "type": "string",
- "format": "date-time",
- "required": false
- },
- "exclude": {
- "description": "Ensure result set excludes specific IDs.",
- "type": "array",
- "items": {
- "type": "integer"
- },
- "default": [],
- "required": false
- },
- "include": {
- "description": "Limit result set to specific IDs.",
- "type": "array",
- "items": {
- "type": "integer"
- },
- "default": [],
- "required": false
- },
- "offset": {
- "description": "Offset the result set by a specific number of items.",
- "type": "integer",
- "required": false
- },
- "order": {
- "description": "Order sort attribute ascending or descending.",
- "type": "string",
- "default": "desc",
- "enum": [
- "asc",
- "desc"
- ],
- "required": false
- },
- "orderby": {
- "description": "Sort collection by post attribute.",
- "type": "string",
- "default": "date",
- "enum": [
- "author",
- "date",
- "id",
- "include",
- "modified",
- "parent",
- "relevance",
- "slug",
- "include_slugs",
- "title"
- ],
- "required": false
- },
- "parent": {
- "description": "Limit result set to items with particular parent IDs.",
- "type": "array",
- "items": {
- "type": "integer"
- },
- "default": [],
- "required": false
- },
- "parent_exclude": {
- "description": "Limit result set to all items except those of a particular parent ID.",
- "type": "array",
- "items": {
- "type": "integer"
- },
- "default": [],
- "required": false
- },
- "search_columns": {
- "default": [],
- "description": "Array of column names to be searched.",
- "type": "array",
- "items": {
- "enum": [
- "post_title",
- "post_content",
- "post_excerpt"
- ],
- "type": "string"
- },
- "required": false
- },
- "slug": {
- "description": "Limit result set to posts with one or more specific slugs.",
- "type": "array",
- "items": {
- "type": "string"
- },
- "required": false
- },
- "status": {
- "default": "inherit",
- "description": "Limit result set to posts assigned one or more statuses.",
- "type": "array",
- "items": {
- "enum": [
- "inherit",
- "private",
- "trash"
- ],
- "type": "string"
- },
- "required": false
- },
- "media_type": {
- "default": null,
- "description": "Limit result set to attachments of a particular media type.",
- "type": "string",
- "enum": [
- "image",
- "video",
- "text",
- "application",
- "audio"
- ],
- "required": false
- },
- "mime_type": {
- "default": null,
- "description": "Limit result set to attachments of a particular MIME type.",
- "type": "string",
- "required": false
- }
- }
- },
- {
- "methods": [
- "POST"
- ],
- "args": {
- "date": {
- "description": "The date the post was published, in the site's timezone.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "required": false
- },
- "date_gmt": {
- "description": "The date the post was published, as GMT.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "required": false
- },
- "slug": {
- "description": "An alphanumeric identifier for the post unique to its type.",
- "type": "string",
- "required": false
- },
- "status": {
- "description": "A named status for the post.",
- "type": "string",
- "enum": [
- "publish",
- "future",
- "draft",
- "pending",
- "private"
- ],
- "required": false
- },
- "title": {
- "description": "The title for the post.",
- "type": "object",
- "properties": {
- "raw": {
- "description": "Title for the post, as it exists in the database.",
- "type": "string",
- "context": [
- "edit"
- ]
- },
- "rendered": {
- "description": "HTML title for the post, transformed for display.",
- "type": "string",
- "context": [
- "view",
- "edit",
- "embed"
- ],
- "readonly": true
- }
- },
- "required": false
- },
- "author": {
- "description": "The ID for the author of the post.",
- "type": "integer",
- "required": false
- },
- "featured_media": {
- "description": "The ID of the featured media for the post.",
- "type": "integer",
- "required": false
- },
- "comment_status": {
- "description": "Whether or not comments are open on the post.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "required": false
- },
- "ping_status": {
- "description": "Whether or not the post can be pinged.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "required": false
- },
- "meta": {
- "description": "Meta fields.",
- "type": "object",
- "properties": [],
- "required": false
- },
- "template": {
- "description": "The theme file to use to display the post.",
- "type": "string",
- "required": false
- },
- "alt_text": {
- "description": "Alternative text to display when attachment is not displayed.",
- "type": "string",
- "required": false
- },
- "caption": {
- "description": "The attachment caption.",
- "type": "object",
- "properties": {
- "raw": {
- "description": "Caption for the attachment, as it exists in the database.",
- "type": "string",
- "context": [
- "edit"
- ]
- },
- "rendered": {
- "description": "HTML caption for the attachment, transformed for display.",
- "type": "string",
- "context": [
- "view",
- "edit",
- "embed"
- ],
- "readonly": true
- }
- },
- "required": false
- },
- "description": {
- "description": "The attachment description.",
- "type": "object",
- "properties": {
- "raw": {
- "description": "Description for the attachment, as it exists in the database.",
- "type": "string",
- "context": [
- "edit"
- ]
- },
- "rendered": {
- "description": "HTML description for the attachment, transformed for display.",
- "type": "string",
- "context": [
- "view",
- "edit"
- ],
- "readonly": true
- }
- },
- "required": false
- },
- "post": {
- "description": "The ID for the associated post of the attachment.",
- "type": "integer",
- "required": false
- }
- }
- }
- ],
- "_links": {
- "self": "http://example.org/index.php?rest_route=/wp/v2/media"
- }
- },
- "/wp/v2/media/(?P<id>[\\d]+)": {
- "namespace": "wp/v2",
- "methods": [
- "GET",
- "POST",
- "PUT",
- "PATCH",
- "DELETE"
- ],
- "endpoints": [
- {
- "methods": [
- "GET"
- ],
- "args": {
- "id": {
- "description": "Unique identifier for the post.",
- "type": "integer",
- "required": false
- },
- "context": {
- "description": "Scope under which the request is made; determines fields present in response.",
- "type": "string",
- "enum": [
- "view",
- "embed",
- "edit"
- ],
- "default": "view",
- "required": false
- }
- }
- },
- {
- "methods": [
- "POST",
- "PUT",
- "PATCH"
- ],
- "args": {
- "id": {
- "description": "Unique identifier for the post.",
- "type": "integer",
- "required": false
- },
- "date": {
- "description": "The date the post was published, in the site's timezone.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "required": false
- },
- "date_gmt": {
- "description": "The date the post was published, as GMT.",
- "type": [
- "string",
- "null"
- ],
- "format": "date-time",
- "required": false
- },
- "slug": {
- "description": "An alphanumeric identifier for the post unique to its type.",
- "type": "string",
- "required": false
- },
- "status": {
- "description": "A named status for the post.",
- "type": "string",
- "enum": [
- "publish",
- "future",
- "draft",
- "pending",
- "private"
- ],
- "required": false
- },
- "title": {
- "description": "The title for the post.",
- "type": "object",
- "properties": {
- "raw": {
- "description": "Title for the post, as it exists in the database.",
- "type": "string",
- "context": [
- "edit"
- ]
- },
- "rendered": {
- "description": "HTML title for the post, transformed for display.",
- "type": "string",
- "context": [
- "view",
- "edit",
- "embed"
- ],
- "readonly": true
- }
- },
- "required": false
- },
- "author": {
- "description": "The ID for the author of the post.",
- "type": "integer",
- "required": false
- },
- "featured_media": {
- "description": "The ID of the featured media for the post.",
- "type": "integer",
- "required": false
- },
- "comment_status": {
- "description": "Whether or not comments are open on the post.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "required": false
- },
- "ping_status": {
- "description": "Whether or not the post can be pinged.",
- "type": "string",
- "enum": [
- "open",
- "closed"
- ],
- "required": false
- },
- "meta": {
- "description": "Meta fields.",
- "type": "object",
- "properties": [],
- "required": false
- },
- "template": {
- "description": "The theme file to use to display the post.",
- "type": "string",
- "required": false
- },
- "alt_text": {
- "description": "Alternative text to display when attachment is not displayed.",
- "type": "string",
- "required": false
- },
- "caption": {
- "description": "The attachment caption.",
- "type": "object",
- "properties": {
- "raw": {
- "description": "Caption for the attachment, as it exists in the database.",
- "type": "string",
- "context": [
- "edit"
- ]
- },
- "rendered": {
- "description": "HTML caption for the attachment, transformed for display.",
- "type": "string",
- "context": [
- "view",
- "edit",
- "embed"
- ],
- "readonly": true
- }
- },
- "required": false
- },
- "description": {
- "description": "The attachment description.",
- "type": "object",
- "properties": {
- "raw": {
- "description": "Description for the attachment, as it exists in the database.",
- "type": "string",
- "context": [
- "edit"
- ]
- },
- "rendered": {
- "description": "HTML description for the attachment, transformed for display.",
- "type": "string",
- "context": [
- "view",
- "edit"
- ],
- "readonly": true
- }
- },
- "required": false
- },
- "post": {
- "description": "The ID for the associated post of the attachment.",
- "type": "integer",
- "required": false
- }
- }
- },
- {
- "methods": [
- "DELETE"
- ],
- "args": {
- "id": {
- "description": "Unique identifier for the post.",
- "type": "integer",
- "required": false
- },
- "force": {
- "type": "boolean",
- "default": false,
- "description": "Whether to bypass Trash and force deletion.",
- "required": false
- }
- }
- }
- ]
- },
- "/wp/v2/media/(?P<id>[\\d]+)/post-process": {
- "namespace": "wp/v2",
- "methods": [
- "POST"
- ],
- "endpoints": [
- {
- "methods": [
- "POST"
- ],
- "args": {
- "id": {
- "description": "Unique identifier for the attachment.",
- "type": "integer",
- "required": false
- },
- "action": {
- "type": "string",
- "enum": [
- "create-image-subsizes"
- ],
- "required": true
- }
- }
- }
- ]
- },
- "/wp/v2/media/(?P<id>[\\d]+)/edit": {
- "namespace": "wp/v2",
- "methods": [
- "POST"
- ],
- "endpoints": [
- {
- "methods": [
- "POST"
- ],
- "args": {
- "src": {
- "description": "URL to the edited image file.",
- "type": "string",
- "format": "uri",
- "required": true
- },
- "modifiers": {
- "description": "Array of image edits.",
- "type": "array",
- "minItems": 1,
- "items": {
- "description": "Image edit.",
- "type": "object",
- "required": [
- "type",
- "args"
- ],
- "oneOf": [
- {
- "title": "Rotation",
- "properties": {
- "type": {
- "description": "Rotation type.",
- "type": "string",
- "enum": [
- "rotate"
- ]
- },
- "args": {
- "description": "Rotation arguments.",
- "type": "object",
- "required": [
- "angle"
- ],
- "properties": {
- "angle": {
- "description": "Angle to rotate clockwise in degrees.",
- "type": "number"
- }
- }
- }
- }
- },
- {
- "title": "Crop",
- "properties": {
- "type": {
- "description": "Crop type.",
- "type": "string",
- "enum": [
- "crop"
- ]
- },
- "args": {
- "description": "Crop arguments.",
- "type": "object",
- "required": [
- "left",
- "top",
- "width",
- "height"
- ],
- "properties": {
- "left": {
- "description": "Horizontal position from the left to begin the crop as a percentage of the image width.",
- "type": "number"
- },
- "top": {
- "description": "Vertical position from the top to begin the crop as a percentage of the image height.",
- "type": "number"
- },
- "width": {
- "description": "Width of the crop as a percentage of the image width.",
- "type": "number"
- },
- "height": {
- "description": "Height of the crop as a percentage of the image height.",
- "type": "number"
- }
- }
- }
- }
- }
- ]
- },
- "required": false
- },
- "rotation": {
- "description": "The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead.",
- "type": "integer",
- "minimum": 0,
- "exclusiveMinimum": true,
- "maximum": 360,
- "exclusiveMaximum": true,
- "required": false
- },
- "x": {
- "description": "As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead.",
- "type": "number",
- "minimum": 0,
- "maximum": 100,
- "required": false
- },
- "y": {
- "description": "As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead.",
- "type": "number",
- "minimum": 0,
- "maximum": 100,
- "required": false
- },
- "width": {
- "description": "As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead.",
- "type": "number",
- "minimum": 0,
- "maximum": 100,
- "required": false
- },
- "height": {
- "description": "As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead.",
- "type": "number",
- "minimum": 0,
- "maximum": 100,
- "required": false
- }
- }
- }
- ]
- },
</del><span class="cx" style="display: block; padding: 0 10px"> "/wp/v2/types": {
</span><span class="cx" style="display: block; padding: 0 10px"> "namespace": "wp/v2",
</span><span class="cx" style="display: block; padding: 0 10px"> "methods": [
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9282,6 +9282,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "enum": {
</span><span class="cx" style="display: block; padding: 0 10px"> "post": "post",
</span><span class="cx" style="display: block; padding: 0 10px"> "page": "page",
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "attachment": "attachment",
</ins><span class="cx" style="display: block; padding: 0 10px"> "nav_menu_item": "nav_menu_item",
</span><span class="cx" style="display: block; padding: 0 10px"> "wp_block": "wp_block",
</span><span class="cx" style="display: block; padding: 0 10px"> "wp_template": "wp_template",
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -9288,8 +9289,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> "wp_template_part": "wp_template_part",
</span><span class="cx" style="display: block; padding: 0 10px"> "wp_navigation": "wp_navigation",
</span><span class="cx" style="display: block; padding: 0 10px"> "wp_font_family": "wp_font_family",
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- "wp_font_face": "wp_font_face",
- "attachment": "attachment"
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "wp_font_face": "wp_font_face"
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><span class="cx" style="display: block; padding: 0 10px"> "required": false
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -12970,6 +12970,36 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ]
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> },
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ "attachment": {
+ "description": "",
+ "hierarchical": false,
+ "has_archive": false,
+ "name": "Media",
+ "slug": "attachment",
+ "icon": "dashicons-admin-media",
+ "taxonomies": [],
+ "rest_base": "media",
+ "rest_namespace": "wp/v2",
+ "_links": {
+ "collection": [
+ {
+ "href": "http://example.org/index.php?rest_route=/wp/v2/types"
+ }
+ ],
+ "wp:items": [
+ {
+ "href": "http://example.org/index.php?rest_route=/wp/v2/media"
+ }
+ ],
+ "curies": [
+ {
+ "name": "wp",
+ "href": "https://api.w.org/{rel}",
+ "templated": true
+ }
+ ]
+ }
+ },
</ins><span class="cx" style="display: block; padding: 0 10px"> "nav_menu_item": {
</span><span class="cx" style="display: block; padding: 0 10px"> "description": "",
</span><span class="cx" style="display: block; padding: 0 10px"> "hierarchical": false,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -13183,36 +13213,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> ]
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- },
- "attachment": {
- "description": "",
- "hierarchical": false,
- "has_archive": false,
- "name": "Media",
- "slug": "attachment",
- "icon": "dashicons-admin-media",
- "taxonomies": [],
- "rest_base": "media",
- "rest_namespace": "wp/v2",
- "_links": {
- "collection": [
- {
- "href": "http://example.org/index.php?rest_route=/wp/v2/types"
- }
- ],
- "wp:items": [
- {
- "href": "http://example.org/index.php?rest_route=/wp/v2/media"
- }
- ],
- "curies": [
- {
- "name": "wp",
- "href": "https://api.w.org/{rel}",
- "templated": true
- }
- ]
- }
</del><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> };
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre>
</div>
</div>
</body>
</html>