editoReview × ResearchGPT Consensus
editoReview × ResearchGPT Consensus · GPT-Aktionen
EditoReview Wordpress API
API for the editoReview Wordpress website
GET /wp/v2/postsGetPostsPOST /wp/v2/postsPostPostsGET /wp/v2/posts/{id}GetPostsIdDELETE /wp/v2/posts/{id}DeletePostsId
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "EditoReview Wordpress API",
"description": "API for the editoReview Wordpress website",
"version": "6.3.2",
"contact": {
"name": "editoReview",
"url": "https://editoreview.com",
"email": "admin@anthroplogic.onmicrosoft.com"
}
},
"servers": [
{
"url": "https://editoreview.com/wp-json"
}
],
"tags": [
{
"name": "wp/v2",
"description": ""
}
],
"security": [],
"components": {
"schemas": {
"post": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "post",
"type": "object",
"properties": {
"date": {
"description": "The date the post was published, in the site's timezone.",
"type": [
"string",
"null"
],
"format": "date-time",
"context": [
"view",
"edit",
"embed"
]
},
"date_gmt": {
"description": "The date the post was published, as GMT.",
"type": [
"string",
"null"
],
"format": "date-time",
"context": [
"view",
"edit"
]
},
"guid": {
"description": "The globally unique identifier for the post.",
"type": "object",
"context": [
"view",
"edit"
],
"readonly": true,
"properties": {
"raw": {
"description": "GUID for the post, as it exists in the database.",
"type": "string",
"context": [
"edit"
],
"readonly": true
},
"rendered": {
"description": "GUID for the post, transformed for display.",
"type": "string",
"context": [
"view",
"edit"
],
"readonly": true
}
}
},
"id": {
"description": "Unique identifier for the post.",
"type": "integer",
"context": [
"view",
"edit",
"embed"
],
"readonly": true
},
"link": {
"description": "URL to the post.",
"type": "string",
"format": "uri",
"context": [
"view",
"edit",
"embed"
],
"readonly": true
},
"modified": {
"description": "The date the post was last modified, in the site's timezone.",
"type": "string",
"format": "date-time",
"context": [
"view",
"edit"
],
"readonly": true
},
"modified_gmt": {
"description": "The date the post was last modified, as GMT.",
"type": "string",
"format": "date-time",
"context": [
"view",
"edit"
],
"readonly": true
},
"slug": {
"description": "An alphanumeric identifier for the post unique to its type.",
"type": "string",
"context": [
"view",
"edit",
"embed"
]
},
"status": {
"description": "A named status for the post.",
"type": "string",
"enum": [
"publish",
"future",
"draft",
"pending",
"private"
],
"context": [
"view",
"edit"
]
},
"type": {
"description": "Type of post.",
"type": "string",
"context": [
"view",
"edit",
"embed"
],
"readonly": true
},
"password": {
"description": "A password to protect access to the content and excerpt.",
"type": "string",
"context": [
"edit"
]
},
"permalink_template": {
"description": "Permalink template for the post.",
"type": "string",
"context": [
"edit"
],
"readonly": true
},
"generated_slug": {
"description": "Slug automatically generated from the post title.",
"type": "string",
"context": [
"edit"
],
"readonly": true
},
"title": {
"description": "The title for the post.",
"type": "object",
"context": [
"view",
"edit",
"embed"
],
"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
}
}
},
"content": {
"description": "The content for the post.",
"type": "object",
"context": [
"view",
"edit"
],
"properties": {
"raw": {
"description": "Content for the post, as it exists in the database.",
"type": "string",
"context": [
"edit"
]
},
"rendered": {
"description": "HTML content for the post, transformed for display.",
"type": "string",
"context": [
"view",
"edit"
],
"readonly": true
},
"block_version": {
"description": "Version of the content block format used by the post.",
"type": "integer",
"context": [
"edit"
],
"readonly": true
},
"protected": {
"description": "Whether the content is protected with a password.",
"type": "boolean",
"context": [
"view",
"edit",
"embed"
],
"readonly": true
}
}
},
"author": {
"description": "The ID for the author of the post.",
"type": "integer",
"context": [
"view",
"edit",
"embed"
]
},
"excerpt": {
"description": "The excerpt for the post.",
"type": "object",
"context": [
"view",
"edit",
"embed"
],
"properties": {
"raw": {
"description": "Excerpt for the post, as it exists in the database.",
"type": "string",
"context": [
"edit"
]
},
"rendered": {
"description": "HTML excerpt for the post, transformed for display.",
"type": "string",
"context": [
"view",
"edit",
"embed"
],
"readonly": true
},
"protected": {
"description": "Whether the excerpt is protected with a password.",
"type": "boolean",
"context": [
"view",
"edit",
"embed"
],
"readonly": true
}
}
},
"featured_media": {
"description": "The ID of the featured media for the post.",
"type": "integer",
"context": [
"view",
"edit",
"embed"
]
},
"comment_status": {
"description": "Whether or not comments are open on the post.",
"type": "string",
"enum": [
"open",
"closed"
],
"context": [
"view",
"edit"
]
},
"ping_status": {
"description": "Whether or not the post can be pinged.",
"type": "string",
"enum": [
"open",
"closed"
],
"context": [
"view",
"edit"
]
},
"format": {
"description": "The format for the post.",
"type": "string",
"enum": [
"standard",
"aside",
"chat",
"gallery",
"link",
"image",
"quote",
"status",
"video",
"audio"
],
"context": [
"view",
"edit"
]
},
"meta": {
"description": "Meta fields.",
"type": "object",
"context": [
"view",
"edit"
],
"properties": {
"footnotes": {
"type": "string",
"description": "",
"default": ""
}
}
},
"sticky": {
"description": "Whether or not the post should be treated as sticky.",
"type": "boolean",
"context": [
"view",
"edit"
]
},
"template": {
"description": "The theme file to use to display the post.",
"type": "string",
"context": [
"view",
"edit"
]
},
"categories": {
"description": "The terms assigned to the post in the category taxonomy.",
"type": "array",
"items": {
"type": "integer"
},
"context": [
"view",
"edit"
]
},
"tags": {
"description": "The terms assigned to the post in the post_tag taxonomy.",
"type": "array",
"items": {
"type": "integer"
},
"context": [
"view",
"edit"
]
}
},
"links": [
{
"rel": "https://api.w.org/action-publish",
"title": "The current user can publish this post.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"publish",
"future"
]
}
}
}
},
{
"rel": "https://api.w.org/action-unfiltered-html",
"title": "The current user can post unfiltered HTML markup and JavaScript.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"content": {
"raw": {
"type": "string"
}
}
}
}
},
{
"rel": "https://api.w.org/action-sticky",
"title": "The current user can sticky this post.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"sticky": {
"type": "boolean"
}
}
}
},
{
"rel": "https://api.w.org/action-assign-author",
"title": "The current user can change the author on this post.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"author": {
"type": "integer"
}
}
}
},
{
"rel": "https://api.w.org/action-assign-categories",
"title": "The current user can assign terms in the category taxonomy.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"categories": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
},
{
"rel": "https://api.w.org/action-create-categories",
"title": "The current user can create terms in the category taxonomy.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"categories": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
},
{
"rel": "https://api.w.org/action-assign-tags",
"title": "The current user can assign terms in the post_tag taxonomy.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
},
{
"rel": "https://api.w.org/action-create-tags",
"title": "The current user can create terms in the post_tag taxonomy.",
"href": "https://editoreview.com/wp-json/wp/v2/posts/{id}",
"targetSchema": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "integer"
}
}
}
}
}
]
}
}
},
"paths": {
"/wp/v2/posts": {
"get": {
"operationId": "GetPosts",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/post"
}
}
}
}
},
"parameters": [
{
"name": "context",
"in": "query",
"description": "Scope under which the request is made; determines fields present in response.",
"required": false,
"schema": {
"enum": [
"view",
"embed",
"edit"
]
}
},
{
"name": "page",
"in": "query",
"description": "Current page of the collection.",
"required": false,
"schema": {
"minimum": 1
}
},
{
"name": "per_page",
"in": "query",
"description": "Maximum number of items to be returned in result set.",
"required": false,
"schema": {
"minimum": 1,
"maximum": 100
}
},
{
"name": "search",
"in": "query",
"description": "Limit results to those matching a string.",
"required": false,
"schema": {}
},
{
"name": "after",
"in": "query",
"description": "Limit response to posts published after a given ISO8601 compliant date.",
"required": false,
"schema": {
"format": "date-time"
}
},
{
"name": "modified_after",
"in": "query",
"description": "Limit response to posts modified after a given ISO8601 compliant date.",
"required": false,
"schema": {
"format": "date-time"
}
},
{
"name": "author",
"in": "query",
"description": "Limit result set to posts assigned to specific authors.",
"required": false,
"schema": {
"items": {
"type": "integer"
}
}
},
{
"name": "author_exclude",
"in": "query",
"description": "Ensure result set excludes posts assigned to specific authors.",
"required": false,
"schema": {
"items": {
"type": "integer"
}
}
},
{
"name": "before",
"in": "query",
"description": "Limit response to posts published before a given ISO8601 compliant date.",
"required": false,
"schema": {
"format": "date-time"
}
},
{
"name": "modified_before",
"in": "query",
"description": "Limit response to posts modified before a given ISO8601 compliant date.",
"required": false,
"schema": {
"format": "date-time"
}
},
{
"name": "exclude",
"in": "query",
"description": "Ensure result set excludes specific IDs.",
"required": false,
"schema": {
"items": {
"type": "integer"
}
}
},
{
"name": "include",
"in": "query",
"description": "Limit result set to specific IDs.",
"required": false,
"schema": {
"items": {
"type": "integer"
}
}
},
{
"name": "offset",
"in": "query",
"description": "Offset the result set by a specific number of items.",
"required": false,
"schema": {}
},
{
"name": "order",
"in": "query",
"description": "Order sort attribute ascending or descending.",
"required": false,
"schema": {
"enum": [
"asc",
"desc"
]
}
},
{
"name": "orderby",
"in": "query",
"description": "Sort collection by post attribute.",
"required": false,
"schema": {
"enum": [
"author",
"date",
"id",
"include",
"modified",
"parent",
"relevance",
"slug",
"include_slugs",
"title"
]
}
},
{
"name": "search_columns",
"in": "query",
"description": "Array of column names to be searched.",
"required": false,
"schema": {
"items": {
"enum": [
"post_title",
"post_content",
"post_excerpt"
],
"type": "string"
}
}
},
{
"name": "slug",
"in": "query",
"description": "Limit result set to posts with one or more specific slugs.",
"required": false,
"schema": {
"items": {
"type": "string"
}
}
},
{
"name": "status",
"in": "query",
"description": "Limit result set to posts assigned one or more statuses.",
"required": false,
"schema": {
"items": {
"enum": [
"publish",
"future",
"draft",
"pending",
"private",
"trash",
"auto-draft",
"inherit",
"request-pending",
"request-confirmed",
"request-failed",
"request-completed",
"any"
],
"type": "string"
}
}
},
{
"name": "tax_relation",
"in": "query",
"description": "Limit result set based on relationship between multiple taxonomies.",
"required": false,
"schema": {
"enum": [
"AND",
"OR"
]
}
},
{
"name": "categories",
"in": "query",
"description": "Limit result set to items with specific terms assigned in the categories taxonomy.",
"required": false,
"schema": {
"oneOf": [
{
"title": "Term ID List",
"description": "Match terms with the listed IDs.",
"type": "array",
"items": {
"type": "integer"
}
},
{
"title": "Term ID Taxonomy Query",
"description": "Perform an advanced term query.",
"type": "object",
"properties": {
"terms": {
"description": "Term IDs.",
"type": "array",
"items": {
"type": "integer"
},
"default": []
},
"include_children": {
"description": "Whether to include child terms in the terms limiting the result set.",
"type": "boolean",
"default": false
},
"operator": {
"description": "Whether items must be assigned all or any of the specified terms.",
"type": "string",
"enum": [
"AND",
"OR"
],
"default": "OR"
}
},
"additionalProperties": false
}
]
}
},
{
"name": "categories_exclude",
"in": "query",
"description": "Limit result set to items except those with specific terms assigned in the categories taxonomy.",
"required": false,
"schema": {
"oneOf": [
{
"title": "Term ID List",
"description": "Match terms with the listed IDs.",
"type": "array",
"items": {
"type": "integer"
}
},
{
"title": "Term ID Taxonomy Query",
"description": "Perform an advanced term query.",
"type": "object",
"properties": {
"terms": {
"description": "Term IDs.",
"type": "array",
"items": {
"type": "integer"
},
"default": []
},
"include_children": {
"description": "Whether to include child terms in the terms limiting the result set.",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
]
}
},
{
"name": "tags",
"in": "query",
"description": "Limit result set to items with specific terms assigned in the tags taxonomy.",
"required": false,
"schema": {
"oneOf": [
{
"title": "Term ID List",
"description": "Match terms with the listed IDs.",
"type": "array",
"items": {
"type": "integer"
}
},
{
"title": "Term ID Taxonomy Query",
"description": "Perform an advanced term query.",
"type": "object",
"properties": {
"terms": {
"description": "Term IDs.",
"type": "array",
"items": {
"type": "integer"
},
"default": []
},
"operator": {
"description": "Whether items must be assigned all or any of the specified terms.",
"type": "string",
"enum": [
"AND",
"OR"
],
"default": "OR"
}
},
"additionalProperties": false
}
]
}
},
{
"name": "tags_exclude",
"in": "query",
"description": "Limit result set to items except those with specific terms assigned in the tags taxonomy.",
"required": false,
"schema": {
"oneOf": [
{
"title": "Term ID List",
"description": "Match terms with the listed IDs.",
"type": "array",
"items": {
"type": "integer"
}
},
{
"title": "Term ID Taxonomy Query",
"description": "Perform an advanced term query.",
"type": "object",
"properties": {
"terms": {
"description": "Term IDs.",
"type": "array",
"items": {
"type": "integer"
},
"default": []
}
},
"additionalProperties": false
}
]
}
},
{
"name": "sticky",
"in": "query",
"description": "Limit result set to items that are sticky.",
"required": false,
"schema": {}
}
]
},
"post": {
"operationId": "PostPosts",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/post"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"date": {
"type": [
"string",
"null"
],
"description": "The date the post was published, in the site's timezone."
},
"date_gmt": {
"type": [
"string",
"null"
],
"description": "The date the post was published, as GMT."
},
"slug": {
"type": "string",
"description": "An alphanumeric identifier for the post unique to its type."
},
"status": {
"type": "string",
"description": "A named status for the post."
},
"password": {
"type": "string",
"description": "A password to protect access to the content and excerpt."
},
"title": {
"type": "string",
"description": "The title for the post."
},
"content": {
"type": "string",
"description": "The content for the post."
},
"author": {
"type": "integer",
"description": "The ID for the author of the post."
},
"excerpt": {
"type": "object",
"description": "The excerpt for the post."
},
"featured_media": {
"type": "integer",
"description": "The ID of the featured media for the post."
},
"comment_status": {
"type": "string",
"description": "Whether or not comments are open on the post."
},
"ping_status": {
"type": "string",
"description": "Whether or not the post can be pinged."
},
"format": {
"type": "string",
"description": "The format for the post."
},
"meta": {
"type": "object",
"description": "Meta fields."
},
"sticky": {
"type": "boolean",
"description": "Whether or not the post should be treated as sticky."
},
"template": {
"type": "string",
"description": "The theme file to use to display the post."
},
"categories": {
"type": "array",
"items": {
"type": "integer"
},
"description": "The terms assigned to the post in the category taxonomy."
},
"tags": {
"type": "array",
"items": {
"type": "integer"
},
"description": "The terms assigned to the post in the post_tag taxonomy."
}
},
"required": [
"title",
"content",
"status"
]
}
}
},
"required": true
}
}
},
"/wp/v2/posts/{id}": {
"get": {
"operationId": "GetPostsId",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/post"
}
}
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"description": "Unique identifier for the post.",
"required": true,
"schema": {}
},
{
"name": "context",
"in": "query",
"description": "Scope under which the request is made; determines fields present in response.",
"required": false,
"schema": {
"enum": [
"view",
"embed",
"edit"
]
}
},
{
"name": "password",
"in": "query",
"description": "The password for the post if it is password protected.",
"required": false,
"schema": {}
}
]
},
"delete": {
"operationId": "DeletePostsId",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/post"
}
}
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"description": "Unique identifier for the post.",
"required": true,
"schema": {}
}
],
"requestBody": {
"content": {
"application/*": {
"schema": {
"type": "object",
"properties": {
"force": {
"type": "boolean",
"description": "Whether to bypass Trash and force deletion."
}
}
}
}
}
}
}
}
}
}