gtemplates-and-more.json•47.4 kB
{
"/gutenberg-templates/v1": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": {
"namespace": {
"default": "gutenberg-templates/v1",
"required": false
},
"context": {
"default": "view",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1"
}
]
}
},
"/gutenberg-templates/v1/categories": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": []
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/categories"
}
]
}
},
"/gutenberg-templates/v1/description": {
"namespace": "gutenberg-templates/v1",
"methods": [
"POST"
],
"endpoints": [
{
"methods": [
"POST"
],
"args": {
"business_name": {
"type": "string",
"required": true
},
"business_description": {
"type": "string",
"required": false
},
"category": {
"type": "string",
"required": false
},
"language_name": {
"type": "string",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/description"
}
]
}
},
"/gutenberg-templates/v1/page-description": {
"namespace": "gutenberg-templates/v1",
"methods": [
"POST"
],
"endpoints": [
{
"methods": [
"POST"
],
"args": {
"business_name": {
"type": "string",
"required": true
},
"business_description": {
"type": "string",
"required": false
},
"page_name": {
"type": "string",
"required": true
},
"page_description": {
"type": "string",
"required": false
},
"category": {
"type": "string",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/page-description"
}
]
}
},
"/gutenberg-templates/v1/keywords": {
"namespace": "gutenberg-templates/v1",
"methods": [
"POST"
],
"endpoints": [
{
"methods": [
"POST"
],
"args": {
"business_name": {
"type": "string",
"required": true
},
"business_description": {
"type": "string",
"required": false
},
"category": {
"type": "string",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/keywords"
}
]
}
},
"/gutenberg-templates/v1/images": {
"namespace": "gutenberg-templates/v1",
"methods": [
"POST"
],
"endpoints": [
{
"methods": [
"POST"
],
"args": {
"keywords": {
"type": "string",
"required": true
},
"per_page": {
"type": "integer",
"required": false
},
"page": {
"type": "integer",
"required": false
},
"orientation": {
"type": "string",
"required": false
},
"engine": {
"type": "string",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/images"
}
]
}
},
"/gutenberg-templates/v1/settings": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET",
"POST",
"PUT",
"PATCH"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": []
},
{
"methods": [
"POST",
"PUT",
"PATCH"
],
"args": {
"key": {
"type": "string",
"required": true
},
"value": {
"type": "boolean",
"required": true
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/settings"
}
]
}
},
"/gutenberg-templates/v1/favorite": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET",
"POST",
"PUT",
"PATCH"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": []
},
{
"methods": [
"POST",
"PUT",
"PATCH"
],
"args": {
"type": {
"type": "string",
"required": true
},
"block_id": {
"type": "integer",
"required": true
},
"status": {
"type": "boolean",
"required": true
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/favorite"
}
]
}
},
"/gutenberg-templates/v1/do-it-later": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": []
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/do-it-later"
}
]
}
},
"/gutenberg-templates/v1/pages-onboarding": {
"namespace": "gutenberg-templates/v1",
"methods": [
"POST"
],
"endpoints": [
{
"methods": [
"POST"
],
"args": []
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/pages-onboarding"
}
]
}
},
"/gutenberg-templates/v1/revoke-access": {
"namespace": "gutenberg-templates/v1",
"methods": [
"POST"
],
"endpoints": [
{
"methods": [
"POST"
],
"args": []
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/revoke-access"
}
]
}
},
"/gutenberg-templates/v1/blocks": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": []
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/blocks"
}
]
}
},
"/gutenberg-templates/v1/setup": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": []
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/setup"
}
]
}
},
"/gutenberg-templates/v1/sites": {
"namespace": "gutenberg-templates/v1",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": []
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/gutenberg-templates/v1/sites"
}
]
}
},
"/wp/v2": {
"namespace": "wp/v2",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": {
"namespace": {
"default": "wp/v2",
"required": false
},
"context": {
"default": "view",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2"
}
]
}
},
"/wp/v2/types": {
"namespace": "wp/v2",
"methods": [
"GET"
],
"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
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2/types"
}
]
}
},
"/wp/v2/types/(?P<type>[\\w-]+)": {
"namespace": "wp/v2",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": {
"type": {
"description": "An alphanumeric identifier for the post type.",
"type": "string",
"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
}
}
}
]
},
"/wp/v2/statuses": {
"namespace": "wp/v2",
"methods": [
"GET"
],
"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
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2/statuses"
}
]
}
},
"/wp/v2/statuses/(?P<status>[\\w-]+)": {
"namespace": "wp/v2",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": {
"status": {
"description": "An alphanumeric identifier for the status.",
"type": "string",
"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
}
}
}
]
},
"/wp/v2/taxonomies": {
"namespace": "wp/v2",
"methods": [
"GET"
],
"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
},
"type": {
"description": "Limit results to taxonomies associated with a specific post type.",
"type": "string",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2/taxonomies"
}
]
}
},
"/wp/v2/taxonomies/(?P<taxonomy>[\\w-]+)": {
"namespace": "wp/v2",
"methods": [
"GET"
],
"endpoints": [
{
"methods": [
"GET"
],
"args": {
"taxonomy": {
"description": "An alphanumeric identifier for the taxonomy.",
"type": "string",
"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
}
}
}
]
},
"/wp/v2/categories": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"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
},
"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
},
"order": {
"description": "Order sort attribute ascending or descending.",
"type": "string",
"default": "asc",
"enum": [
"asc",
"desc"
],
"required": false
},
"orderby": {
"description": "Sort collection by term attribute.",
"type": "string",
"default": "name",
"enum": [
"id",
"include",
"name",
"slug",
"include_slugs",
"term_group",
"description",
"count"
],
"required": false
},
"hide_empty": {
"description": "Whether to hide terms not assigned to any posts.",
"type": "boolean",
"default": false,
"required": false
},
"parent": {
"description": "Limit result set to terms assigned to a specific parent.",
"type": "integer",
"required": false
},
"post": {
"description": "Limit result set to terms assigned to a specific post.",
"type": "integer",
"default": null,
"required": false
},
"slug": {
"description": "Limit result set to terms with one or more specific slugs.",
"type": "array",
"items": {
"type": "string"
},
"required": false
}
}
},
{
"methods": [
"POST"
],
"allow_batch": {
"v1": true
},
"args": {
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": true
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"parent": {
"description": "The parent term ID.",
"type": "integer",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2/categories"
}
]
}
},
"/wp/v2/categories/(?P<id>[\\d]+)": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"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"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": false
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"parent": {
"description": "The parent term ID.",
"type": "integer",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
}
}
},
{
"methods": [
"DELETE"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"force": {
"type": "boolean",
"default": false,
"description": "Required to be true, as terms do not support trashing.",
"required": false
}
}
}
]
},
"/wp/v2/tags": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"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
},
"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": "asc",
"enum": [
"asc",
"desc"
],
"required": false
},
"orderby": {
"description": "Sort collection by term attribute.",
"type": "string",
"default": "name",
"enum": [
"id",
"include",
"name",
"slug",
"include_slugs",
"term_group",
"description",
"count"
],
"required": false
},
"hide_empty": {
"description": "Whether to hide terms not assigned to any posts.",
"type": "boolean",
"default": false,
"required": false
},
"post": {
"description": "Limit result set to terms assigned to a specific post.",
"type": "integer",
"default": null,
"required": false
},
"slug": {
"description": "Limit result set to terms with one or more specific slugs.",
"type": "array",
"items": {
"type": "string"
},
"required": false
}
}
},
{
"methods": [
"POST"
],
"allow_batch": {
"v1": true
},
"args": {
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": true
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2/tags"
}
]
}
},
"/wp/v2/tags/(?P<id>[\\d]+)": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"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"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": false
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
}
}
},
{
"methods": [
"DELETE"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"force": {
"type": "boolean",
"default": false,
"description": "Required to be true, as terms do not support trashing.",
"required": false
}
}
}
]
},
"/wp/v2/menus": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"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
},
"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": "asc",
"enum": [
"asc",
"desc"
],
"required": false
},
"orderby": {
"description": "Sort collection by term attribute.",
"type": "string",
"default": "name",
"enum": [
"id",
"include",
"name",
"slug",
"include_slugs",
"term_group",
"description",
"count"
],
"required": false
},
"hide_empty": {
"description": "Whether to hide terms not assigned to any posts.",
"type": "boolean",
"default": false,
"required": false
},
"post": {
"description": "Limit result set to terms assigned to a specific post.",
"type": "integer",
"default": null,
"required": false
},
"slug": {
"description": "Limit result set to terms with one or more specific slugs.",
"type": "array",
"items": {
"type": "string"
},
"required": false
}
}
},
{
"methods": [
"POST"
],
"allow_batch": {
"v1": true
},
"args": {
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": true
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
},
"locations": {
"description": "The locations assigned to the menu.",
"type": "array",
"items": {
"type": "string"
},
"required": false
},
"auto_add": {
"description": "Whether to automatically add top level pages to this menu.",
"type": "boolean",
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2/menus"
}
]
}
},
"/wp/v2/menus/(?P<id>[\\d]+)": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"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"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": false
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
},
"locations": {
"description": "The locations assigned to the menu.",
"type": "array",
"items": {
"type": "string"
},
"required": false
},
"auto_add": {
"description": "Whether to automatically add top level pages to this menu.",
"type": "boolean",
"required": false
}
}
},
{
"methods": [
"DELETE"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"force": {
"type": "boolean",
"default": false,
"description": "Required to be true, as terms do not support trashing.",
"required": false
}
}
}
]
},
"/wp/v2/wp_pattern_category": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"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
},
"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": "asc",
"enum": [
"asc",
"desc"
],
"required": false
},
"orderby": {
"description": "Sort collection by term attribute.",
"type": "string",
"default": "name",
"enum": [
"id",
"include",
"name",
"slug",
"include_slugs",
"term_group",
"description",
"count"
],
"required": false
},
"hide_empty": {
"description": "Whether to hide terms not assigned to any posts.",
"type": "boolean",
"default": false,
"required": false
},
"post": {
"description": "Limit result set to terms assigned to a specific post.",
"type": "integer",
"default": null,
"required": false
},
"slug": {
"description": "Limit result set to terms with one or more specific slugs.",
"type": "array",
"items": {
"type": "string"
},
"required": false
}
}
},
{
"methods": [
"POST"
],
"allow_batch": {
"v1": true
},
"args": {
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": true
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
}
}
}
],
"_links": {
"self": [
{
"href": "https://therift.se/wp-json/wp/v2/wp_pattern_category"
}
]
}
},
"/wp/v2/wp_pattern_category/(?P<id>[\\d]+)": {
"namespace": "wp/v2",
"methods": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"endpoints": [
{
"methods": [
"GET"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"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"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"description": {
"description": "HTML description of the term.",
"type": "string",
"required": false
},
"name": {
"description": "HTML title for the term.",
"type": "string",
"required": false
},
"slug": {
"description": "An alphanumeric identifier for the term unique to its type.",
"type": "string",
"required": false
},
"meta": {
"description": "Meta fields.",
"type": "object",
"properties": [],
"required": false
}
}
},
{
"methods": [
"DELETE"
],
"allow_batch": {
"v1": true
},
"args": {
"id": {
"description": "Unique identifier for the term.",
"type": "integer",
"required": false
},
"force": {
"type": "boolean",
"default": false,
"description": "Required to be true, as terms do not support trashing.",
"required": false
}
}
}
]
}
}