Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
array arg without item type:
/wp/v2/posts
slug
{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array"}
arg without type:
/wp/v2/posts/(?P<id>[\d]+)
password
{"required":false,"description":"The password for the post if it is password protected."}
array arg without item type:
/wp/v2/pages
slug
{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array"}
arg without type:
/wp/v2/pages/(?P<id>[\d]+)
password
{"required":false,"description":"The password for the post if it is password protected."}
array arg without item type:
/wp/v2/media
slug
{"required":false,"description":"Limit result set to posts with one or more specific slugs.","type":"array"}
arg without type:
/wp/v2/media/(?P<id>[\d]+)
password
{"required":false,"description":"The password for the post if it is password protected."}
type of capabilities property should be object:
/wp/v2/types
capabilities
{"description":"All capabilities used by the resource.","type":"array","items":{"type":"string"},"context":["edit"],"readonly":true}
type of capabilities property should be object:
/wp/v2/types/(?P<type>[\w-]+)
capabilities
{"description":"All capabilities used by the resource.","type":"array","items":{"type":"string"},"context":["edit"],"readonly":true}
type of capabilities property should be object:
/wp/v2/taxonomies
capabilities
{"description":"All capabilities used by the resource.","type":"array","context":["edit"],"readonly":true}
array property in schema without item type:
/wp/v2/taxonomies
capabilities
{"description":"All capabilities used by the resource.","type":"array","context":["edit"],"readonly":true}
type of capabilities property should be object:
/wp/v2/taxonomies/(?P<taxonomy>[\w-]+)
capabilities
{"description":"All capabilities used by the resource.","type":"array","context":["edit"],"readonly":true}
array property in schema without item type:
/wp/v2/taxonomies/(?P<taxonomy>[\w-]+)
capabilities
{"description":"All capabilities used by the resource.","type":"array","context":["edit"],"readonly":true}
arg without type:
/wp/v2/users/(?P<id>[\d]+)
reassign
{"required":false}
arg without description:
/wp/v2/users/(?P<id>[\d]+)
reassign
{"required":false}
arg without type:
/wp/v2/users/me
context
{"required":false}
arg without description:
/wp/v2/users/me
context
{"required":false}
type of context arg should be string with enum:
/wp/v2/users/me
context
{"required":false}
arg without type:
/wp/v2/users/me
reassign
{"required":false}
arg without description:
/wp/v2/users/me
reassign
{"required":false}
content-like property should be object with rendered/raw(/protected) fields:
/wp/v2/comments
content
{"description":"The content for the object.","type":"object","context":["view","edit","embed"],"properties":{"raw":{"description":"Content for the object, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the object, transformed for display.","type":"string","context":["view","edit","embed"]}}}
content-like property should be object with rendered/raw(/protected) fields:
/wp/v2/comments/(?P<id>[\d]+)
content
{"description":"The content for the object.","type":"object","context":["view","edit","embed"],"properties":{"raw":{"description":"Content for the object, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the object, transformed for display.","type":"string","context":["view","edit","embed"]}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.