diff --git a/README.md b/README.md index 8daac42..3609bcc 100644 --- a/README.md +++ b/README.md @@ -154,8 +154,8 @@ Create a `myPlugin.ts` file: ```ts // 引用模块 -// import { start } from 'https://deno.land/x/stc@2.16.2/mod.ts' -import { start } from 'jsr:@lonu/stc@^2.16.2' +// import { start } from 'https://deno.land/x/stc@2.16.3/mod.ts' +import { start } from 'jsr:@lonu/stc@^2.16.3' // Defining plugins const myPlugin: IPlugin = { diff --git a/deno.json b/deno.json index 380bce4..15301ca 100644 --- a/deno.json +++ b/deno.json @@ -1,12 +1,12 @@ { "name": "@lonu/stc", - "version": "2.16.2", + "version": "2.16.3", "exports": "./mod.ts", "tasks": { "pack": "deno run -A src/pack.ts", - "dev": "deno task pack && deno run -A --watch=src src/main.ts --url='https://petstore3.swagger.io/api/v3/openapi.json' --lang=js", + "dev": "deno task pack && deno run -A --watch=src src/main.ts --url='https://petstore3.swagger.io/api/v3/openapi.json' --lang=ts", "serve": "deno run -A --watch=src src/service.ts", - "version": "echo '2.16.2' > release/version", + "version": "echo '2.16.3' > release/version", "build:npm": "deno run -A src/npm/build.ts", "build:mac": "deno compile -A --target x86_64-apple-darwin --output release/stc src/main.ts", "build:mac-m": "deno compile -A --target aarch64-apple-darwin --output release/stc-m src/main.ts", diff --git a/src/app.ts b/src/app.ts index 67115dc..5592741 100644 --- a/src/app.ts +++ b/src/app.ts @@ -8,6 +8,17 @@ import { getT } from "./i18n/index.ts"; const LOCK_FILE = ".stc.lock"; +const formatErrorMessage = (error: unknown) => { + if (error instanceof Error) return error.message; + if (typeof error === "string") return error; + + try { + return JSON.stringify(error, null, 2); + } catch { + return String(error); + } +}; + /** * 初始化插件管理器 */ @@ -82,7 +93,9 @@ const getData = async ( return data; } catch (error) { - throw new Error(getT("$t(app.apiJsonFileError)", { error })); + throw new Error(getT("$t(app.apiJsonFileError)", { + error: formatErrorMessage(error), + })); } }; @@ -100,7 +113,9 @@ export const start = async (options: DefaultConfigOptions): Promise => { context.onLoad?.(data, context.options); // 处理类型定义。v2 版本中,通过 `definitions` 属性获取。而 v3 版本,则通过 `components.schemas` 属性获取。 - const defData = getDefinition(data.definitions || data.components?.schemas); + const defData = getDefinition( + data.definitions || data.components?.schemas || {}, + ); // 触发插件 onDefinition 事件 context.onDefinition?.(defData, context.options); diff --git a/src/console.ts b/src/console.ts index c6d68e5..a87cf0c 100644 --- a/src/console.ts +++ b/src/console.ts @@ -6,10 +6,10 @@ import { getT } from "./i18n/index.ts"; * 输出提示信息 * @param str - 文本内容 */ -const info = (str: string) => { +const info = (str: unknown) => { console.info( Colors.bgBlue(getT(" $t(console.info) ")) + - ` ${Colors.blue(str)}`, + ` ${Colors.blue(formatLogMessage(str))}`, ); }; @@ -17,9 +17,10 @@ const info = (str: string) => { * 输出成功信息 * @param str - 文本内容 */ -const success = (str: string) => { +const success = (str: unknown) => { console.info( - Colors.bgGreen(getT(" $t(console.success) ")) + ` ${Colors.green(str)}`, + Colors.bgGreen(getT(" $t(console.success) ")) + + ` ${Colors.green(formatLogMessage(str))}`, ); }; @@ -27,19 +28,32 @@ const success = (str: string) => { * 输出警告信息 * @param str - 文本内容 */ -const warn = (str: string) => { +const warn = (str: unknown) => { console.log( - Colors.bgYellow(getT(" $t(console.warn) ")) + ` ${Colors.yellow(str)}`, + Colors.bgYellow(getT(" $t(console.warn) ")) + + ` ${Colors.yellow(formatLogMessage(str))}`, ); }; +const formatLogMessage = (value: unknown): string => { + if (typeof value === "string") return value; + if (value instanceof Error) return value.message; + + try { + return JSON.stringify(value, null, 2); + } catch { + return String(value); + } +}; + /** * 输出错误信息 * @param str - 文本内容 */ -const error = (str: string) => { +const error = (str: unknown) => { console.error( - Colors.bgRed(getT(" $t(console.error) ")) + ` ${Colors.red(str)}`, + Colors.bgRed(getT(" $t(console.error) ")) + + ` ${Colors.red(formatLogMessage(str))}`, ); }; diff --git a/src/core.ts b/src/core.ts index 847bf76..c613169 100644 --- a/src/core.ts +++ b/src/core.ts @@ -89,7 +89,7 @@ const getVirtualProperties = ( IDefinitionVirtualProperty[] | IDefinitionVirtualProperty >, ): IDefinitionVirtualProperty[] => { - if (!defItem.type.includes("object")) { + if (!defItem.type?.includes("object")) { Logs.warn( getT("$t(def.parserTypeError)", { name: defMapping.name, diff --git a/src/npm/pkg.json b/src/npm/pkg.json index 18e6dbe..bf0fb88 100644 --- a/src/npm/pkg.json +++ b/src/npm/pkg.json @@ -1,6 +1,6 @@ { "name": "@lonu/stc", - "version": "2.16.2", + "version": "2.16.3", "description": "A tool for converting OpenApi/Swagger/Apifox into code.", "type": "module", "module": "esm/mod.js", diff --git a/src/plugins/action.ts b/src/plugins/action.ts index a97de88..5e08c49 100644 --- a/src/plugins/action.ts +++ b/src/plugins/action.ts @@ -142,6 +142,7 @@ const parseParams = (parameters: IPathVirtualParameter, action: string) => // 形参 let _formalParam = { name: current, + originalName: "", category: current, type: _defName, description: "", @@ -216,7 +217,9 @@ const parseParams = (parameters: IPathVirtualParameter, action: string) => if (!_multiParam) { _formalParam = { name: item.name, - originalName: item.originalName, + originalName: item.originalName && item.originalName !== item.name + ? item.originalName + : "", category: current, type: _type, description: (item.title || item.description) ?? "", diff --git a/src/plugins/dart/template/index.ts b/src/plugins/dart/template/index.ts index 7a9aac5..399ddc9 100644 --- a/src/plugins/dart/template/index.ts +++ b/src/plugins/dart/template/index.ts @@ -1,2 +1,2 @@ // this file is auto generated. -export default {"actionImport":"import '<%= it.importPath%>shared/api_client_base.dart';\nimport 'shared/dio/index.dart';\n<% if (it.imports.length) { %>\nimport '<%= it.importPath %><%= it.typeFileName %>.dart';\n<% } %>","actionMethod":"<% /* API 方法注释 */ %>\n/// <%~ it.url %>\n<% if (it.summary) { %>\n/// <%~ it.summary %>\n<% } %>\n<% if (it.summary !== it.description) { %>\n<% if (it.summary && it.description) { %>\n\n///\n<% } %>\n<% if (it.description) { %>\n/// <%~ it.description %>\n<% } %>\n<% } %>\n\n<% if (it.deprecated) { %>\n@deprecated\n<% } %>\n<% /* API 方法 */ %>\nFuture<<%~ it.responseType %>> <%= it.methodName %>(<% it.params.forEach((param, index) => { %>\n<%~ param.type %><% if(!param.required) { %>?<% } %> <%= param.name %><% if (index < it.params.length - 1) { %>, <% } %>\n<% }) %>) async {\n var _res = await request<<%~ it.responseType %>>(\n ApiClientConfig(\n url: '<%= it.url %>',\n method: '<%= it.method %>'<% if (it.params.length) { %>,\n params: {\n<% it.params.forEach((param, index) => { %>\n '<%= param.category %>': <% if (param.category === param.name) { %><%= param.name %><% } else { %>{'<%= param.name %>' : <%= param.name %>}<% } %><% if (index < it.params.length - 1) { %>, <% } %>\n\n<% }) %>\n }\n<% } %>\n )<% if (it.responseType.includes('List<')) { %>, (json) => [<%~ it.responseName %>.fromJson(json)]<% } else if (it.responseName) { %>, <%~ it.responseName %>.fromJson<% } %>);\n\n return _res;\n}\n","definitionBody":"<% if (it.propCommit) { %>\n /// <%~ it.propCommit %>\n\n<% } %>\n <%~ it.propType %><% if (!it.prop.required) { %>?<% } %> <%= it.prop.name %><% if (it.nullable) { %> = <%~ it.nullable %><% } %>;","definitionFooter":" <%= it.defName %>({\n<% it.props.forEach((prop, index) => { %>\n <% if (prop.required) { %>required <% } %>this.<%= prop.name %><% if (index < it.props.length - 1) { %>,<% } %>\n\n<% }) %>\n });\n\n factory <%= it.defName %>.fromJson(Map json) {\n return <%= it.defName %>(\n<% it.props.forEach((prop, index) => { %>\n <%= prop.name %>: json['<%= prop.name %>']<% if (index < it.props.length - 1) { %>,<% } %>\n\n<% }) %>\n );\n }\n\n Map toJson() {\n final Map data = {};\n\n<% it.props.forEach((prop) => { %>\n data['<%= prop.name %>'] = <%= prop.name %>;\n<% }) %>\n\n return data;\n }\n}\n","definitionHeader":"class <%= it.defName %> {","enum":"<% if (it.isEnum) { %>\nenum <%= it.name %> {\n <%= it.data.map(it.convertValue).join(\",\\n\\t\")%>\n \n}\n<% } else { %>\n<%~ it.data %> <%= it.name %>;\n<% } %>"} \ No newline at end of file +export default {"actionImport":"import '<%= it.importPath%>shared/api_client_base.dart';\nimport 'shared/dio/index.dart';\n<% if (it.imports.length) { %>\nimport '<%= it.importPath %><%= it.typeFileName %>.dart';\n<% } %>","actionMethod":"<% /* API 方法注释 */ %>\n/// <%~ it.url %>\n<% if (it.summary) { %>\n/// <%~ it.summary %>\n<% } %>\n<% if (it.summary !== it.description) { %>\n<% if (it.summary && it.description) { %>\n\n///\n<% } %>\n<% if (it.description) { %>\n/// <%~ it.description %>\n<% } %>\n<% } %>\n\n<% if (it.deprecated) { %>\n@deprecated\n<% } %>\n<% /* API 方法 */ %>\nFuture<<%~ it.responseType %>> <%= it.methodName %>(<% it.params.forEach((param, index) => { %>\n<%~ param.type %><% if(!param.required) { %>?<% } %> <%= param.name %><% if (index < it.params.length - 1) { %>, <% } %>\n<% }) %>) async {\n var _res = await request<<%~ it.responseType %>>(\n ApiClientConfig(\n url: '<%= it.url %>',\n method: '<%= it.method %>'<% if (it.params.length) { %>,\n params: {\n<% it.params.forEach((param, index) => { %>\n '<%= param.category %>': <% if (param.category === param.name) { %><%= param.name %><% } else { %>{'<%= param.originalName || param.name %>' : <%= param.name %>}<% } %><% if (index < it.params.length - 1) { %>, <% } %>\n\n<% }) %>\n }\n<% } %>\n )<% if (it.responseType.includes('List<')) { %>, (json) => [<%~ it.responseName %>.fromJson(json)]<% } else if (it.responseName) { %>, <%~ it.responseName %>.fromJson<% } %>);\n\n return _res;\n}\n","definitionBody":"<% if (it.propCommit) { %>\n /// <%~ it.propCommit %>\n\n<% } %>\n <%~ it.propType %><% if (!it.prop.required) { %>?<% } %> <%= it.prop.name %><% if (it.nullable) { %> = <%~ it.nullable %><% } %>;","definitionFooter":" <%= it.defName %>({\n<% it.props.forEach((prop, index) => { %>\n <% if (prop.required) { %>required <% } %>this.<%= prop.name %><% if (index < it.props.length - 1) { %>,<% } %>\n\n<% }) %>\n });\n\n factory <%= it.defName %>.fromJson(Map json) {\n return <%= it.defName %>(\n<% it.props.forEach((prop, index) => { %>\n <%= prop.name %>: json['<%= prop.originalName || prop.name %>']<% if (index < it.props.length - 1) { %>,<% } %>\n\n<% }) %>\n );\n }\n\n Map toJson() {\n final Map data = {};\n\n<% it.props.forEach((prop) => { %>\n data['<%= prop.originalName || prop.name %>'] = <%= prop.name %>;\n<% }) %>\n\n return data;\n }\n}\n","definitionHeader":"class <%= it.defName %> {","enum":"<% if (it.isEnum) { %>\nenum <%= it.name %> {\n <%= it.data.map(it.convertValue).join(\",\\n\\t\")%>\n \n}\n<% } else { %>\n<%~ it.data %> <%= it.name %>;\n<% } %>"} \ No newline at end of file diff --git a/src/plugins/javascript/oxc.ts b/src/plugins/javascript/oxc.ts index 32c90e3..259f033 100644 --- a/src/plugins/javascript/oxc.ts +++ b/src/plugins/javascript/oxc.ts @@ -2,6 +2,31 @@ import { isolatedDeclarationSync, transformSync } from "oxc-transform"; import Logs from "../../console.ts"; +const formatOxcError = (error: unknown): string => { + if (typeof error === "string") return error; + if (error instanceof Error) return error.message; + + if (typeof error === "object" && error !== null) { + const obj = error as Record; + const message = typeof obj.message === "string" + ? obj.message + : JSON.stringify(obj, null, 2); + const codeframe = typeof obj.codeframe === "string" + ? obj.codeframe + : undefined; + return [message, codeframe].filter(Boolean).join("\n\n"); + } + + try { + return JSON.stringify(error, null, 2); + } catch { + return String(error); + } +}; + +const formatOxcErrors = (errors: unknown[]): string => + errors.map((error) => formatOxcError(error)).join("\n\n"); + /** * Generates a declaration file from the given source code. * @@ -18,7 +43,7 @@ export const generateDeclarationFile = (sourceCode: string): string => { ); if (errors.length > 0) { - Logs.error(errors.join("\n")); + Logs.error(formatOxcErrors(errors)); return ""; } @@ -48,7 +73,7 @@ export const oxcTransform = ( ); if (errors.length > 0) { - Logs.error(errors.join("\n")); + Logs.error(formatOxcErrors(errors)); return { code: "", declaration: "" }; } diff --git a/src/plugins/swift/template/index.ts b/src/plugins/swift/template/index.ts index 3cf5770..86bacbb 100644 --- a/src/plugins/swift/template/index.ts +++ b/src/plugins/swift/template/index.ts @@ -1,2 +1,2 @@ // this file is auto generated. -export default {"actionImport":"import Foundation\n<% if (it.imports.length) { %>\nimport <%= it.typeFileName %>\n<% } %>\nimport APIClient\n","actionMethod":"<% /* API 方法注释 */ %>\n/// <%~ it.url %>\n<% if (it.summary) { %>\n/// <%~ it.summary %>\n<% } %>\n<% if (it.summary !== it.description) { %>\n<% if (it.summary && it.description) { %>\n///\n<% } %>\n<% if (it.description) { %>\n/// <%~ it.description %>\n<% } %>\n<% } %>\n\n<% if (it.deprecated) { %>\n@available(*, deprecated, message: \"This API is deprecated\")\n<% } %>\n<% /* API 方法 */ %>\npublic func <%= it.methodName %>(<% it.params.forEach((param, index) => { %>\n <%= param.name %>: <%= param.type %><% if (!param.required) { %>?<% } %><% if (index < it.params.length - 1) { %>,<% } %>\n<% }) %>) async throws -> <%= it.responseType %> {\n <% /* 处理路径参数 */ %>\n <% const pathParams = it.params.filter(p => p.category === 'path'); %>\n <% if (pathParams.length > 0) { %>\n let pathParams: [String: String] = [\n <% pathParams.forEach((param, index) => { %>\n \"<%= param.name %>\": String(<%= param.name %>)<% if (index < pathParams.length - 1) { %>,<% } %>\n <% }) %>\n ]\n let parsedUrl = \"<%= it.url %>\".parsePathParams(pathParams)\n <% } %>\n \n <% /* 处理请求参数 */ %>\n <% const bodyParams = it.params.filter(p => p.category === 'body' || p.category === 'formData'); %>\n <% const queryParams = it.params.filter(p => p.category === 'query'); %>\n <% if (bodyParams.length > 0 || queryParams.length > 0) { %>\n var params: [String: Any] = [:]\n <% bodyParams.forEach(param => { %>\n <% if (param.required) { %>\n params[\"<%= param.category %>\"] = <%= param.name %>\n <% } else { %>\n if let <%= param.name %> = <%= param.name %> {\n params[\"<%= param.category %>\"] = <%= param.name %>\n }\n <% } %>\n <% }) %>\n <% queryParams.forEach(param => { %>\n <% if (param.required) { %>\n params[\"<%= param.category %>\"] = <%= param.name %>\n <% } else { %>\n if let <%= param.name %> = <%= param.name %> {\n params[\"<%= param.category %>\"] = <%= param.name %>\n }\n <% } %>\n <% }) %>\n <% } %>\n \n let config = APIClientConfig(\n url: <% if (pathParams.length > 0) { %>parsedUrl<% } else { %>\"<%= it.url %>\"<% } %>,\n method: \"<%= it.method %>\"<% if (bodyParams.length > 0 || queryParams.length > 0) { %>,\n params: params<% } %>\n )\n \n return try await APIClient.shared.request(config, type: <%= it.responseType %>.self)\n}\n","definitionBody":"<% if (it.propCommit) { %>\n /// <%~ it.propCommit %>\n\n<% } %>\n public let <%= it.prop.name %>: <%= it.propType %><% if (!it.prop.required) { %>?<% } %>","definitionFooter":"}\n","definitionHeader":"public struct <%= it.defName %>: Codable {","enum":"<% if (it.isEnum) { %>\npublic enum <%= it.name %>: String, Codable {\n <% it.data.forEach(function(item) { %>\n case <%= it.convertValue(item).replace(/[^a-zA-Z0-9_]/g, '_') %> = \"<%= item %>\"\n <% }) %>\n}\n<% } else { %>\npublic typealias <%= it.name %> = <%= it.data %>\n<% } %>\n"} \ No newline at end of file +export default {"actionImport":"import Foundation\n<% if (it.imports.length) { %>\nimport <%= it.typeFileName %>\n<% } %>\nimport APIClient\n","actionMethod":"<% /* API 方法注释 */ %>\n/// <%~ it.url %>\n<% if (it.summary) { %>\n/// <%~ it.summary %>\n<% } %>\n<% if (it.summary !== it.description) { %>\n<% if (it.summary && it.description) { %>\n///\n<% } %>\n<% if (it.description) { %>\n/// <%~ it.description %>\n<% } %>\n<% } %>\n\n<% if (it.deprecated) { %>\n@available(*, deprecated, message: \"This API is deprecated\")\n<% } %>\n<% /* API 方法 */ %>\npublic func <%= it.methodName %>(<% it.params.forEach((param, index) => { %>\n <%= param.name %>: <%= param.type %><% if (!param.required) { %>?<% } %><% if (index < it.params.length - 1) { %>,<% } %>\n<% }) %>) async throws -> <%= it.responseType %> {\n <% /* 处理路径参数 */ %>\n <% const pathParams = it.params.filter(p => p.category === 'path'); %>\n <% if (pathParams.length > 0) { %>\n let pathParams: [String: String] = [\n <% pathParams.forEach((param, index) => { %>\n \"<%= param.originalName || param.name %>\": String(<%= param.name %>)<% if (index < pathParams.length - 1) { %>,<% } %>\n <% }) %>\n ]\n let parsedUrl = \"<%= it.url %>\".parsePathParams(pathParams)\n <% } %>\n \n <% /* 处理请求参数 */ %>\n <% const bodyParams = it.params.filter(p => p.category === 'body' || p.category === 'formData'); %>\n <% const queryParams = it.params.filter(p => p.category === 'query'); %>\n <% if (bodyParams.length > 0 || queryParams.length > 0) { %>\n var params: [String: Any] = [:]\n <% bodyParams.forEach(param => { %>\n <% if (param.required) { %>\n params[\"<%= param.category %>\"] = <%= param.name %>\n <% } else { %>\n if let <%= param.name %> = <%= param.name %> {\n params[\"<%= param.category %>\"] = <%= param.name %>\n }\n <% } %>\n <% }) %>\n <% queryParams.forEach(param => { %>\n <% if (param.required) { %>\n params[\"<%= param.category %>\"] = <%= param.name %>\n <% } else { %>\n if let <%= param.name %> = <%= param.name %> {\n params[\"<%= param.category %>\"] = <%= param.name %>\n }\n <% } %>\n <% }) %>\n <% } %>\n \n let config = APIClientConfig(\n url: <% if (pathParams.length > 0) { %>parsedUrl<% } else { %>\"<%= it.url %>\"<% } %>,\n method: \"<%= it.method %>\"<% if (bodyParams.length > 0 || queryParams.length > 0) { %>,\n params: params<% } %>\n )\n \n return try await APIClient.shared.request(config, type: <%= it.responseType %>.self)\n}\n","definitionBody":"<% if (it.propCommit) { %>\n /// <%~ it.propCommit %>\n\n<% } %>\n public let <%= it.prop.name %>: <%= it.propType %><% if (!it.prop.required) { %>?<% } %>","definitionFooter":"<% if (it.props && it.props.some(prop => prop.originalName && prop.originalName !== prop.name)) { %>\n private enum CodingKeys: String, CodingKey {\n<% it.props.forEach(prop => { %>\n case <%= prop.name %> = \"<%= prop.originalName || prop.name %>\"\n<% }) %>\n }\n<% } %>\n}","definitionHeader":"public struct <%= it.defName %>: Codable {","enum":"<% if (it.isEnum) { %>\npublic enum <%= it.name %>: String, Codable {\n <% it.data.forEach(function(item) { %>\n case <%= it.convertValue(item).replace(/[^a-zA-Z0-9_]/g, '_') %> = \"<%= item %>\"\n <% }) %>\n}\n<% } else { %>\npublic typealias <%= it.name %> = <%= it.data %>\n<% } %>\n"} \ No newline at end of file diff --git a/src/plugins/typescript/template/actionMethod.eta b/src/plugins/typescript/template/actionMethod.eta index f7a7220..b436957 100644 --- a/src/plugins/typescript/template/actionMethod.eta +++ b/src/plugins/typescript/template/actionMethod.eta @@ -21,7 +21,7 @@ <% } %> <% if (it.params.length) { %> <% it.params.forEach(param => { %> - * @param {<%~ param.type %>} <% if (!param.required) { %>[<% } %><%= param.name %><% if (!param.required) { %>]<% } %> - <%~ param.description || param.type %> + * @param {<%~ param.type %>} <% if (!param.required) { %>[<% } %><%~ param.name %><% if (!param.required) { %>]<% } %> - <%~ param.description || param.type %> <% }) %> <% } %> @@ -29,13 +29,16 @@ * @returns {Promise<<%~ it.responseType %>>} Promise<<%~ it.responseType %>> */ <% /* API 方法 */ %> -export const <%= it.methodName %> = (<% it.params.forEach((param, index) => { %> -<%= param.name %><% if (!param.required) { %>?<% } %>: <%~ param.type %><% if (index < it.params.length - 1) { %>, <% } %> -<% }) %><% if (it.params.length) { %>, <% } %>config?: ApiClientConfig['config']): Promise<<%~ it.responseType %>> => fetchRuntime<<%~ it.responseType %>>('<%= it.url %>', '<%= it.method.toUpperCase() %>', <% if (it.params.length) { %>{ +export const <%~ it.methodName %> = (<% it.params.forEach((param, index) => { %> +<%~ param.name %><% if (!param.required) { %>?<% } %>: <%~ param.type %><% if (index < it.params.length - 1) { %>, <% } %> +<% }) %><% if (it.params.length) { %>, <% } %>config?: ApiClientConfig['config']): Promise<<%~ it.responseType %>> => fetchRuntime<<%~ it.responseType %>>('<%~ it.url %>', '<%~ it.method.toUpperCase() %>', <% if (it.params.length) { %>{ <% it.params.forEach((param, index) => { %> - <%= param.category %><% if (param.category === param.name) { %> -<% } else { %>: <% if (param.category === 'body') { %><%= param.name %><% } else { %>{ - <%= param.originalName ? "'" + param.originalName + "': " + param.name : param.name %> + <%~ param.category %><% if (param.category === param.name) { %> +<% } else { %>: <% if (param.category === 'body') { %><%~ param.name %><% } else if (param.category === 'header') { %>{ + <% if (param.originalName) { %>'<%~ param.originalName %>': <%~ param.name %><% } else { %><%~ param.name %><% } %> + + }<% } else { %>{ + <% if (param.originalName) { %>'<%~ param.originalName %>': <%~ param.name %><% } else { %><%~ param.name %><% } %> }<% } %> <% } %><% if (index < it.params.length - 1) { %>, <% } %> diff --git a/src/plugins/typescript/template/index.ts b/src/plugins/typescript/template/index.ts index 6787378..5ac0b8a 100644 --- a/src/plugins/typescript/template/index.ts +++ b/src/plugins/typescript/template/index.ts @@ -1,2 +1,2 @@ // this file is auto generated. -export default {"actionImport":"import type { ApiClientConfig } from '<%= it.importPath %>shared/apiClientBase'\nimport { fetchRuntime } from '<%= it.importPath %>shared/fetchRuntime'\n<% if (it.imports.length) { %>\nimport type { <%= it.imports.join(', ') %> } from '<%= it.importPath %><%= it.typeFileName %>'\n<% } %>","actionMethod":"<% /* API 方法注释 */ %>\n/**\n<% if (it.deprecated) { %>\n * @deprecated\n *\n<% } %>\n * <%~ it.url %>\n\n *\n<% if (it.summary) { %>\n * <%~ it.summary %>\n\n *\n<% } %>\n<% if (it.summary !== it.description) { %>\n<% if (it.description) { %>\n * @description <%~ it.description %>\n \n *\n<% } %>\n<% } %>\n<% if (it.params.length) { %>\n<% it.params.forEach(param => { %>\n * @param {<%~ param.type %>} <% if (!param.required) { %>[<% } %><%= param.name %><% if (!param.required) { %>]<% } %> - <%~ param.description || param.type %>\n\n<% }) %>\n<% } %>\n * @param {ApiClientConfig['config']} [config] - ApiClientConfig['config']\n * @returns {Promise<<%~ it.responseType %>>} Promise<<%~ it.responseType %>>\n */\n<% /* API 方法 */ %>\nexport const <%= it.methodName %> = (<% it.params.forEach((param, index) => { %>\n<%= param.name %><% if (!param.required) { %>?<% } %>: <%~ param.type %><% if (index < it.params.length - 1) { %>, <% } %>\n<% }) %><% if (it.params.length) { %>, <% } %>config?: ApiClientConfig['config']): Promise<<%~ it.responseType %>> => fetchRuntime<<%~ it.responseType %>>('<%= it.url %>', '<%= it.method.toUpperCase() %>', <% if (it.params.length) { %>{\n<% it.params.forEach((param, index) => { %>\n <%= param.category %><% if (param.category === param.name) { %>\n<% } else { %>: <% if (param.category === 'body') { %><%= param.name %><% } else { %>{\n\t\t<%= param.name %>\n\n\t}<% } %>\n<% } %><% if (index < it.params.length - 1) { %>, <% } %>\n\n<% }) %>\n}<% } else { %>undefined<% } %>, config)\n","definitionBody":"<% if (it.propCommit) { %>\n /**\n * <%~ it.propCommit %>\n\n */\n<% } %>\n <%= it.prop.name %><% if (!it.prop.required) { %>?<% } %>: <%~ it.propType %><% if (it.nullable) { %> | <%~ it.nullable %><% } %>;","definitionFooter":"}\n// #endregion\n","definitionHeader":"// #region <%= it.defName %>\n\nexport interface <%= it.defName %> {","enum":"<% \n const option = it.isEnum ? it.data.map(item => { \n const val = it.convertValue(item)\n\n return typeof val === 'number' ? val : `'${val}'`\n }) : [it.data]\n%>\n// #region <%= it.name %>\n\nexport type <%= it.name %> = <%~ option.join(\" | \") %>;\n// #endregion\n"} \ No newline at end of file +export default {"actionImport":"import type { ApiClientConfig } from '<%= it.importPath %>shared/apiClientBase'\nimport { fetchRuntime } from '<%= it.importPath %>shared/fetchRuntime'\n<% if (it.imports.length) { %>\nimport type { <%= it.imports.join(', ') %> } from '<%= it.importPath %><%= it.typeFileName %>'\n<% } %>","actionMethod":"<% /* API 方法注释 */ %>\n/**\n<% if (it.deprecated) { %>\n * @deprecated\n *\n<% } %>\n * <%~ it.url %>\n\n *\n<% if (it.summary) { %>\n * <%~ it.summary %>\n\n *\n<% } %>\n<% if (it.summary !== it.description) { %>\n<% if (it.description) { %>\n * @description <%~ it.description %>\n \n *\n<% } %>\n<% } %>\n<% if (it.params.length) { %>\n<% it.params.forEach(param => { %>\n * @param {<%~ param.type %>} <% if (!param.required) { %>[<% } %><%~ param.name %><% if (!param.required) { %>]<% } %> - <%~ param.description || param.type %>\n\n<% }) %>\n<% } %>\n * @param {ApiClientConfig['config']} [config] - ApiClientConfig['config']\n * @returns {Promise<<%~ it.responseType %>>} Promise<<%~ it.responseType %>>\n */\n<% /* API 方法 */ %>\nexport const <%~ it.methodName %> = (<% it.params.forEach((param, index) => { %>\n<%~ param.name %><% if (!param.required) { %>?<% } %>: <%~ param.type %><% if (index < it.params.length - 1) { %>, <% } %>\n<% }) %><% if (it.params.length) { %>, <% } %>config?: ApiClientConfig['config']): Promise<<%~ it.responseType %>> => fetchRuntime<<%~ it.responseType %>>('<%~ it.url %>', '<%~ it.method.toUpperCase() %>', <% if (it.params.length) { %>{\n<% it.params.forEach((param, index) => { %>\n <%~ param.category %><% if (param.category === param.name) { %>\n<% } else { %>: <% if (param.category === 'body') { %><%~ param.name %><% } else if (param.category === 'header') { %>{\n\t\t<% if (param.originalName) { %>'<%~ param.originalName %>': <%~ param.name %><% } else { %><%~ param.name %><% } %>\n\n\t}<% } else { %>{\n\t\t<% if (param.originalName) { %>'<%~ param.originalName %>': <%~ param.name %><% } else { %><%~ param.name %><% } %>\n\n\t}<% } %>\n<% } %><% if (index < it.params.length - 1) { %>, <% } %>\n\n<% }) %>\n}<% } else { %>undefined<% } %>, config)\n","definitionBody":"<% if (it.propCommit) { %>\n /**\n * <%~ it.propCommit %>\n\n */\n<% } %>\n \"<%= it.prop.originalName || it.prop.name %>\"<% if (!it.prop.required) { %>?<% } %>: <%~ it.propType %><% if (it.nullable) { %> | <%~ it.nullable %><% } %>;","definitionFooter":"}\n// #endregion\n","definitionHeader":"// #region <%= it.defName %>\n\nexport interface <%= it.defName %> {","enum":"<% \n const option = it.isEnum ? it.data.map(item => { \n const val = it.convertValue(item)\n\n return typeof val === 'number' ? val : `'${val}'`\n }) : [it.data]\n%>\n// #region <%= it.name %>\n\nexport type <%= it.name %> = <%~ option.join(\" | \") %>;\n// #endregion\n"} \ No newline at end of file diff --git a/test/blog-json.json b/test/blog-json.json new file mode 100644 index 0000000..25d4249 --- /dev/null +++ b/test/blog-json.json @@ -0,0 +1,686 @@ +{ + "openapi": "3.0.1", + "info": { "title": "wordpress", "description": "", "version": "1.0.0" }, + "tags": [{ "name": "博客" }], + "paths": { + "/wp-json/wp/v2/posts?_fields=id,date,title,excerpt,categories,tags,acf,comment_status": { + "get": { + "summary": "文章列表", + "x-apifox-folder": "博客", + "x-apifox-status": "released", + "deprecated": false, + "description": "Response Header中返回两个字段:\n\nX-WP-Total: 总数\nX-WP-TotalPages:总页数", + "tags": ["博客"], + "parameters": [ + { + "name": "_fields", + "in": "query", + "description": "返回的字段", + "required": true, + "example": "id,date,title,excerpt,categories,tags,acf,comment_status", + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "分页", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "search", + "in": "query", + "description": "搜索词", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "categories", + "in": "query", + "description": "栏目ID", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "per_page", + "in": "query", + "description": "每页数量,默认10条", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "offset", + "in": "query", + "description": "偏移量", + "required": false, + "schema": { "type": "integer" } + } + ], + "responses": { + "200": { + "description": "成功", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer", "description": "文章ID" }, + "date": { "type": "string", "description": "发布日期" }, + "title": { + "type": "object", + "properties": { + "rendered": { + "type": "string", + "description": "文章标题" + } + }, + "x-apifox-orders": ["rendered"], + "x-apifox-ignore-properties": [] + }, + "excerpt": { + "type": "object", + "properties": { + "rendered": { + "type": "string", + "description": "文章摘要" + } + }, + "x-apifox-orders": ["rendered"], + "x-apifox-ignore-properties": [] + }, + "comment_status": { + "type": "string", + "description": "是否开启评论 open为开启,closed为关闭" + }, + "categories": { + "type": "array", + "items": { "type": "integer" }, + "description": "所属栏目ID集合" + }, + "tags": { + "type": "array", + "items": { "type": "integer" }, + "description": "tag集合ID" + }, + "acf": { + "type": "object", + "properties": { + "img": { "type": "string", "description": "封面图" } + }, + "x-apifox-orders": ["img"], + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "date", + "title", + "excerpt", + "comment_status", + "categories", + "tags", + "acf" + ], + "x-apifox-ignore-properties": [] + }, + "description": "文章列表" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4161279/apis/api-155496754-run", + "security": [] + } + }, + "/wp-json/wp/v2/tags?_fields=id,count,name": { + "get": { + "summary": "Tag列表", + "x-apifox-folder": "博客", + "x-apifox-status": "released", + "deprecated": false, + "description": "Response Header中返回两个字段:\n\nX-WP-Total: 总数\nX-WP-TotalPages:总页数", + "tags": ["博客"], + "parameters": [ + { + "name": "_fields", + "in": "query", + "description": "返回的字段", + "required": true, + "example": "id,count,name", + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "分页", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "search", + "in": "query", + "description": "搜索词", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post", + "in": "query", + "description": "文章ID", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "per_page", + "in": "query", + "description": "每页数量,默认10条", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "offset", + "in": "query", + "description": "偏移量", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "include", + "in": "query", + "description": "指定TagID,逗号分隔", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "成功", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer", "title": "tagID" }, + "count": { "type": "integer", "title": "文章数量" }, + "name": { "type": "string", "title": "tag名称" } + }, + "required": ["id", "count", "name"], + "x-apifox-orders": ["id", "count", "name"], + "x-apifox-ignore-properties": [] + } + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4161279/apis/api-155496755-run", + "security": [] + } + }, + "/wp-json/wp/v2/categories?_fields=id,count,name,parent": { + "get": { + "summary": "栏目列表", + "x-apifox-folder": "博客", + "x-apifox-status": "released", + "deprecated": false, + "description": "Response Header中返回两个字段:\n\nX-WP-Total: 总数\nX-WP-TotalPages:总页数", + "tags": ["博客"], + "parameters": [ + { + "name": "_fields", + "in": "query", + "description": "返回的字段", + "required": true, + "example": "id,count,name,parent", + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "分页", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "per_page", + "in": "query", + "description": "每页数量,默认10条", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "search", + "in": "query", + "description": "搜索词", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "父栏目ID,为0时只返回顶级栏目", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "order", + "in": "query", + "description": "排序,默认asc", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "排序字段,默认name", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "成功", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer", "description": "栏目ID" }, + "count": { "type": "integer", "description": "文章数量" }, + "name": { "type": "string", "description": "栏目名称" } + }, + "x-apifox-orders": ["id", "count", "name"], + "x-apifox-ignore-properties": [] + } + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4161279/apis/api-155496756-run", + "security": [] + } + }, + "/wp-json/wp/v2/search?_fields=id,title": { + "get": { + "summary": "搜索", + "x-apifox-folder": "博客", + "x-apifox-status": "released", + "deprecated": false, + "description": "Response Header中返回两个字段:\n\nX-WP-Total: 总数\nX-WP-TotalPages:总页数", + "tags": ["博客"], + "parameters": [ + { + "name": "_fields", + "in": "query", + "description": "返回的字段", + "required": true, + "example": "id,title", + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "搜索词", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "分页", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "per_page", + "in": "query", + "description": "每页数量,默认10条", + "required": false, + "schema": { "type": "integer" } + } + ], + "responses": { + "200": { + "description": "成功", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer", "description": "文章ID" }, + "title": { "type": "string", "description": "文章标题" } + }, + "x-apifox-orders": ["id", "title"], + "x-apifox-ignore-properties": [] + } + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4161279/apis/api-155496757-run", + "security": [] + } + }, + "/wp-json/wp/v2/posts/{id}?_fields=id,date,link,title,content,comment_status,categories,tags,acf": { + "get": { + "summary": "文章详情", + "x-apifox-folder": "博客", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["博客"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章ID", + "required": true, + "schema": { "type": "integer" } + }, + { + "name": "_fields", + "in": "query", + "description": "返回的字段", + "required": true, + "example": "id,date,link,title,content,comment_status,categories,tags,acf", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "成功", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { "type": "integer", "description": "文章ID" }, + "date": { "type": "string", "description": "发表时间" }, + "link": { "type": "string", "description": "Url" }, + "title": { + "type": "object", + "properties": { "rendered": { "type": "string" } }, + "required": ["rendered"], + "x-apifox-orders": ["rendered"], + "description": "文章标题", + "x-apifox-ignore-properties": [] + }, + "content": { + "type": "object", + "properties": { + "rendered": { "type": "string" }, + "protected": { "type": "boolean" } + }, + "required": ["rendered", "protected"], + "x-apifox-orders": ["rendered", "protected"], + "description": "文章内容", + "x-apifox-ignore-properties": [] + }, + "comment_status": { + "type": "string", + "description": "是否开启评论,open为开启,closed为关闭" + }, + "categories": { + "type": "array", + "items": { "type": "integer" }, + "description": "分类集合" + }, + "tags": { + "type": "array", + "items": { "type": "integer" }, + "description": "tag集合" + }, + "acf": { + "type": "object", + "properties": { + "img": { "type": "string" }, + "content": { "type": "string" } + }, + "x-apifox-orders": ["img", "content"], + "description": "封面图", + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "date", + "link", + "title", + "content", + "comment_status", + "categories", + "tags", + "acf" + ], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4161279/apis/api-155496758-run", + "security": [] + } + }, + "/wp-json/wp/v2/comments?_fields=id,parent,author_name,date,content,author_avatar_urls": { + "get": { + "summary": "评论列表", + "x-apifox-folder": "博客", + "x-apifox-status": "developing", + "deprecated": false, + "description": "Response Header中返回两个字段:\n\nX-WP-Total: 总数\nX-WP-TotalPages:总页数", + "tags": ["博客"], + "parameters": [ + { + "name": "_fields", + "in": "query", + "description": "返回的字段", + "required": true, + "example": "id,parent,author_name,date,content,author_avatar_urls", + "schema": { "type": "string" } + }, + { + "name": "post", + "in": "query", + "description": "文章ID", + "required": true, + "schema": { "type": "integer" } + }, + { + "name": "page", + "in": "query", + "description": "分页", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "per_page", + "in": "query", + "description": "每页数量,默认10条", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "offset", + "in": "query", + "description": "偏移量", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "parent", + "in": "query", + "description": "父评论ID,为0时只获取一级评论\n", + "required": false, + "schema": { "type": "integer" } + } + ], + "responses": { + "200": { + "description": "成功", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer", "description": "评论ID" }, + "parent": { + "type": "integer", + "description": "父评论ID" + }, + "author_name": { + "type": "string", + "description": "昵称" + }, + "date": { "type": "string", "description": "发布时间" }, + "content": { + "type": "object", + "properties": { + "rendered": { + "type": "string", + "description": "内容" + } + }, + "required": ["rendered"], + "x-apifox-orders": ["rendered"], + "x-apifox-ignore-properties": [] + }, + "author_avatar_urls": { + "type": "object", + "properties": { + "24": { "type": "string" }, + "48": { "type": "string" }, + "96": { "type": "string" } + }, + "required": ["24", "48", "96"], + "x-apifox-orders": ["24", "48", "96"], + "description": "头像", + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "parent", + "author_name", + "date", + "content", + "author_avatar_urls" + ], + "x-apifox-ignore-properties": [] + } + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4161279/apis/api-155496759-run", + "security": [] + } + }, + "/wp-json/wp/v2/comments": { + "post": { + "summary": "发表评论", + "x-apifox-folder": "博客", + "x-apifox-status": "developing", + "deprecated": false, + "description": "", + "tags": ["博客"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "_fields": { + "type": "string", + "description": "返回的字段", + "example": "id,post,parent,author_name,date,content,author_avatar_urls" + }, + "post": { "type": "integer", "description": "文章ID" }, + "author_name": { "type": "string", "description": "昵称" }, + "author_email": { "type": "string", "description": "Email" }, + "content": { "type": "string", "description": "评论内容" }, + "parent": { "type": "integer", "description": "父评论ID" } + }, + "required": [ + "_fields", + "post", + "author_name", + "author_email", + "content" + ] + } + } + } + }, + "responses": { + "200": { + "description": "成功", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { "type": "integer", "description": "评论ID" }, + "post": { "type": "integer", "description": "文章ID" }, + "parent": { "type": "integer", "description": "父评论ID" }, + "author_name": { "type": "string", "description": "昵称" }, + "date": { "type": "string", "description": "发表时间" }, + "content": { + "type": "object", + "properties": { "rendered": { "type": "string" } }, + "required": ["rendered"], + "x-apifox-orders": ["rendered"], + "description": "评论内容", + "x-apifox-ignore-properties": [] + }, + "author_avatar_urls": { + "type": "object", + "properties": { + "24": { "type": "string" }, + "48": { "type": "string" }, + "96": { "type": "string" } + }, + "required": ["24", "48", "96"], + "x-apifox-orders": ["24", "48", "96"], + "description": "头像", + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "post", + "parent", + "author_name", + "date", + "content", + "author_avatar_urls" + ], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4161279/apis/api-155496760-run", + "security": [] + } + } + }, + "components": { "schemas": {}, "securitySchemes": {} }, + "servers": [] +} diff --git a/test/cli.test.ts b/test/cli.test.ts index b18482a..52cc231 100644 --- a/test/cli.test.ts +++ b/test/cli.test.ts @@ -53,7 +53,7 @@ Deno.test("conjunction", async () => { "run", "-A", "src/main.ts", - "--url=https://api.swaggerhub.com/apis/frezs/wp-json/1.0.0", + "--url=./test/wp-json.json", "-c=with", ], }); @@ -124,3 +124,17 @@ Deno.test("globalHeader(gh)", async () => { assertEquals(0, code); }); + +Deno.test("tagSpaceHeader", async () => { + const command = new Deno.Command("deno", { + args: [ + "run", + "-A", + "src/main.ts", + "--url=./test/tag-space-header.json", + ], + }); + const { code, stdout } = await command.output(); + console.log(new TextDecoder().decode(stdout)); + assertEquals(0, code); +}); diff --git a/test/swagger-4.test.ts b/test/swagger-4.test.ts index 9e49ab1..8111b60 100644 --- a/test/swagger-4.test.ts +++ b/test/swagger-4.test.ts @@ -7,7 +7,7 @@ Deno.test("解决动态路径生成方法被覆盖的问题", async () => { "run", "-A", "src/main.ts", - "--url=https://api.swaggerhub.com/apis/frezs/wp-json/1.0.0", + "--url=./test/wp-json.json", "--outDir=out", ], }); @@ -23,7 +23,7 @@ Deno.test("支持URL路径Query参数解析", async () => { "run", "-A", "src/main.ts", - "--url=https://api.swaggerhub.com/apis/frezs/blog-json/1.0.0", + "--url=./test/blog-json.json", "--outDir=out", ], }); diff --git a/test/tag-space-header.json b/test/tag-space-header.json new file mode 100644 index 0000000..641b24b --- /dev/null +++ b/test/tag-space-header.json @@ -0,0 +1,56 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Tag Space Header Test", + "version": "1.0" + }, + "tags": [ + { + "name": "My Tag With Space", + "description": "A tag whose name contains spaces" + } + ], + "paths": { + "/pets": { + "get": { + "summary": "List pets", + "tags": ["My Tag With Space"], + "parameters": [ + { + "name": "X-My-Custom-Header", + "in": "header", + "description": "A custom header containing a hyphen", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "name": { + "type": "string" + } + } + } + } + } + } + } + } + } + } + } +} diff --git a/test/wp-json.json b/test/wp-json.json new file mode 100644 index 0000000..e8f3fbd --- /dev/null +++ b/test/wp-json.json @@ -0,0 +1,18685 @@ +{ + "openapi": "3.1.0", + "info": { "title": "wp-json", "description": "", "version": "1.0.0" }, + "tags": [ + { "name": "oembed" }, + { "name": "文章" }, + { "name": "页面" }, + { "name": "媒体" }, + { "name": "菜单项" }, + { "name": "块" }, + { "name": "模板" }, + { "name": "模板组件" }, + { "name": "导航" }, + { "name": "类型" }, + { "name": "状态" }, + { "name": "关联" }, + { "name": "分类" }, + { "name": "标签" }, + { "name": "菜单" }, + { "name": "用户" }, + { "name": "评论" }, + { "name": "全局样式" }, + { "name": "设置" }, + { "name": "主题" }, + { "name": "插件" }, + { "name": "边栏" }, + { "name": "小工具" }, + { "name": "块编辑器" }, + { "name": "站点健康" }, + { "name": "搜索" } + ], + "paths": { + "/oembed/1.0": { + "get": { + "summary": "/oembed/1.0", + "x-apifox-folder": "oembed", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["oembed"], + "parameters": [ + { + "name": "namespace", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415422-run", + "security": [] + } + }, + "/oembed/1.0/embed": { + "get": { + "summary": "/oembed/1.0/embed", + "x-apifox-folder": "oembed", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["oembed"], + "parameters": [ + { + "name": "url", + "in": "query", + "description": "需要获取oEmbed数据的链接。", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "format", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "maxwidth", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415423-run", + "security": [] + } + }, + "/oembed/1.0/proxy": { + "get": { + "summary": "/oembed/1.0/proxy", + "x-apifox-folder": "oembed", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["oembed"], + "parameters": [ + { + "name": "url", + "in": "query", + "description": "需要获取oEmbed数据的链接。", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "format", + "in": "query", + "description": "使用的oEmbed格式。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "maxwidth", + "in": "query", + "description": "嵌入的元素的最大宽度(像素)。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "maxheight", + "in": "query", + "description": "嵌入的元素的最大高度(像素)。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "discover", + "in": "query", + "description": "对未经批准的提供者是否进行oEmbed发现请求。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415424-run", + "security": [] + } + }, + "/wp/v2": { + "get": { + "summary": "/wp/v2", + "x-apifox-folder": "", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": [], + "parameters": [ + { + "name": "namespace", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415427-run", + "security": [] + } + }, + "/wp/v2/posts": { + "get": { + "summary": "/wp/v2/posts", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "after", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之后发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_after", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之后修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author", + "in": "query", + "description": "将结果集限制为指定给特定作者的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author_exclude", + "in": "query", + "description": "确保结果集排除指定给特定作者的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "before", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之前发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_before", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之前修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按文章属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search_columns", + "in": "query", + "description": "要搜索的列名称组。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为有一个或多个特定别名的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "将结果集限制为有一个或多个状态的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "tax_relation", + "in": "query", + "description": "基于多个分类法间的关系限制结果集。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "categories", + "in": "query", + "description": "将结果集限制为在categories分类法中指定了特定项目的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "categories_exclude", + "in": "query", + "description": "将结果集限制为在categories分类法中未指定特定项目的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "tags", + "in": "query", + "description": "将结果集限制为在tags分类法中指定了特定项目的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "tags_exclude", + "in": "query", + "description": "将结果集限制为在tags分类法中未指定特定项目的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "sticky", + "in": "query", + "description": "将结果集限制为置顶项目。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415428-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/posts", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "format": { "type": "string", "description": "文章的形式。" }, + "meta": { "type": "string", "description": "元字段。" }, + "sticky": { + "type": "string", + "description": "文章是否为置顶。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "categories": { + "type": "array", + "description": "在 category 分类法中分配给该文章的项目。" + }, + "tags": { + "type": "array", + "description": "在 post_tag 分类法中分配给该文章的项目。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415429-run", + "security": [] + } + }, + "/wp/v2/posts/{id}": { + "get": { + "summary": "/wp/v2/posts/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "password", + "in": "query", + "description": "该文章的密码,如文章受密码保护。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415430-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/posts/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "format": { "type": "string", "description": "文章的形式。" }, + "meta": { "type": "string", "description": "元字段。" }, + "sticky": { + "type": "string", + "description": "文章是否为置顶。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "categories": { + "type": "array", + "description": "在 category 分类法中分配给该文章的项目。" + }, + "tags": { + "type": "array", + "description": "在 post_tag 分类法中分配给该文章的项目。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415431-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/posts/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "format": { "type": "string", "description": "文章的形式。" }, + "meta": { "type": "string", "description": "元字段。" }, + "sticky": { + "type": "string", + "description": "文章是否为置顶。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "categories": { + "type": "array", + "description": "在 category 分类法中分配给该文章的项目。" + }, + "tags": { + "type": "array", + "description": "在 post_tag 分类法中分配给该文章的项目。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415432-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/posts/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "format": { "type": "string", "description": "文章的形式。" }, + "meta": { "type": "string", "description": "元字段。" }, + "sticky": { + "type": "string", + "description": "文章是否为置顶。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "categories": { + "type": "array", + "description": "在 category 分类法中分配给该文章的项目。" + }, + "tags": { + "type": "array", + "description": "在 post_tag 分类法中分配给该文章的项目。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415433-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/posts/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415434-run", + "security": [] + } + }, + "/wp/v2/posts/{parent}/revisions": { + "get": { + "summary": "/wp/v2/posts/{parent}/revisions", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按对象属性排序集合。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415435-run", + "security": [] + } + }, + "/wp/v2/posts/{parent}/revisions/{id}": { + "get": { + "summary": "/wp/v2/posts/{parent}/revisions/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415436-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/posts/{parent}/revisions/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为修订版本不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415437-run", + "security": [] + } + }, + "/wp/v2/posts/{id}/autosaves": { + "get": { + "summary": "/wp/v2/posts/{id}/autosaves", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "自动保存的父级ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415438-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/posts/{id}/autosaves", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "parent": { + "type": "integer", + "description": "自动保存的父级ID。" + }, + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "format": { "type": "string", "description": "文章的形式。" }, + "meta": { "type": "string", "description": "元字段。" }, + "sticky": { + "type": "string", + "description": "文章是否为置顶。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "categories": { + "type": "array", + "description": "在 category 分类法中分配给该文章的项目。" + }, + "tags": { + "type": "array", + "description": "在 post_tag 分类法中分配给该文章的项目。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415439-run", + "security": [] + } + }, + "/wp/v2/posts/{parent}/autosaves/{id}": { + "get": { + "summary": "/wp/v2/posts/{parent}/autosaves/{id}", + "x-apifox-folder": "文章", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["文章"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "自动保存的父级ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "自动保存的 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/post-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415440-run", + "security": [] + } + }, + "/wp/v2/pages": { + "get": { + "summary": "/wp/v2/pages", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "after", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之后发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_after", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之后修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author", + "in": "query", + "description": "将结果集限制为指定给特定作者的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author_exclude", + "in": "query", + "description": "确保结果集排除指定给特定作者的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "before", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之前发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_before", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之前修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "menu_order", + "in": "query", + "description": "将结果集限制为有特定menu_order的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按文章属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "将结果集限制为具有特定父 ID 的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent_exclude", + "in": "query", + "description": "将结果集限制为除特定父ID之外的所有项。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search_columns", + "in": "query", + "description": "要搜索的列名称组。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为有一个或多个特定别名的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "将结果集限制为有一个或多个状态的文章。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415441-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/pages", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "parent": { + "type": "integer", + "description": "文章的父级 ID。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "menu_order": { + "type": "integer", + "description": "文章与其他文章的顺序。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415442-run", + "security": [] + } + }, + "/wp/v2/pages/{id}": { + "get": { + "summary": "/wp/v2/pages/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "password", + "in": "query", + "description": "该文章的密码,如文章受密码保护。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415443-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/pages/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "parent": { + "type": "integer", + "description": "文章的父级 ID。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "menu_order": { + "type": "integer", + "description": "文章与其他文章的顺序。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415444-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/pages/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "parent": { + "type": "integer", + "description": "文章的父级 ID。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "menu_order": { + "type": "integer", + "description": "文章与其他文章的顺序。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415445-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/pages/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "parent": { + "type": "integer", + "description": "文章的父级 ID。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "menu_order": { + "type": "integer", + "description": "文章与其他文章的顺序。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415446-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/pages/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415447-run", + "security": [] + } + }, + "/wp/v2/pages/{parent}/revisions": { + "get": { + "summary": "/wp/v2/pages/{parent}/revisions", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按对象属性排序集合。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415448-run", + "security": [] + } + }, + "/wp/v2/pages/{parent}/revisions/{id}": { + "get": { + "summary": "/wp/v2/pages/{parent}/revisions/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415449-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/pages/{parent}/revisions/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为修订版本不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415450-run", + "security": [] + } + }, + "/wp/v2/pages/{id}/autosaves": { + "get": { + "summary": "/wp/v2/pages/{id}/autosaves", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "自动保存的父级ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415451-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/pages/{id}/autosaves", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "parent": { + "type": "integer", + "description": "文章的父级 ID。" + }, + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "excerpt": { + "type": "string", + "description": "该篇文章的摘要。" + }, + "featured_media": { + "type": "integer", + "description": "文章的特色媒体 ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "menu_order": { + "type": "integer", + "description": "文章与其他文章的顺序。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415452-run", + "security": [] + } + }, + "/wp/v2/pages/{parent}/autosaves/{id}": { + "get": { + "summary": "/wp/v2/pages/{parent}/autosaves/{id}", + "x-apifox-folder": "页面", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["页面"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "自动保存的父级ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "自动保存的 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415453-run", + "security": [] + } + }, + "/wp/v2/media": { + "get": { + "summary": "/wp/v2/media", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "after", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之后发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_after", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之后修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author", + "in": "query", + "description": "将结果集限制为指定给特定作者的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author_exclude", + "in": "query", + "description": "确保结果集排除指定给特定作者的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "before", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之前发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_before", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之前修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按文章属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "将结果集限制为具有特定父 ID 的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent_exclude", + "in": "query", + "description": "将结果集限制为除特定父ID之外的所有项。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search_columns", + "in": "query", + "description": "要搜索的列名称组。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为有一个或多个特定别名的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "将结果集限制为有一个或多个状态的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "media_type", + "in": "query", + "description": "将结果集限制为某一媒体类型的附件。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "mime_type", + "in": "query", + "description": "将结果集限制为某一MIME类型的附件。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/attachment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415454-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/media", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "alt_text": { + "type": "string", + "description": "在附件未能显示时显示的替换文本。" + }, + "caption": { + "type": "string", + "description": "附件说明文字。" + }, + "description": { + "type": "string", + "description": "附件的描述。" + }, + "post": { + "type": "integer", + "description": "附件所属文章的ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/attachment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415455-run", + "security": [] + } + }, + "/wp/v2/media/{id}": { + "get": { + "summary": "/wp/v2/media/{id}", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/attachment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415456-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/media/{id}", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "alt_text": { + "type": "string", + "description": "在附件未能显示时显示的替换文本。" + }, + "caption": { + "type": "string", + "description": "附件说明文字。" + }, + "description": { + "type": "string", + "description": "附件的描述。" + }, + "post": { + "type": "integer", + "description": "附件所属文章的ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/attachment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415457-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/media/{id}", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "alt_text": { + "type": "string", + "description": "在附件未能显示时显示的替换文本。" + }, + "caption": { + "type": "string", + "description": "附件说明文字。" + }, + "description": { + "type": "string", + "description": "附件的描述。" + }, + "post": { + "type": "integer", + "description": "附件所属文章的ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/attachment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415458-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/media/{id}", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "author": { + "type": "integer", + "description": "文章作者的ID。" + }, + "comment_status": { + "type": "string", + "description": "文章是否开放评论。" + }, + "ping_status": { + "type": "string", + "description": "文章是否接受ping。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + }, + "alt_text": { + "type": "string", + "description": "在附件未能显示时显示的替换文本。" + }, + "caption": { + "type": "string", + "description": "附件说明文字。" + }, + "description": { + "type": "string", + "description": "附件的描述。" + }, + "post": { + "type": "integer", + "description": "附件所属文章的ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/attachment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415459-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/media/{id}", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/attachment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415460-run", + "security": [] + } + }, + "/wp/v2/media/{id}/post-process": { + "post": { + "summary": "/wp/v2/media/{id}/post-process", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "附件的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { "action": { "type": "string" } }, + "required": ["action"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415461-run", + "security": [] + } + }, + "/wp/v2/media/{id}/edit": { + "post": { + "summary": "/wp/v2/media/{id}/edit", + "x-apifox-folder": "媒体", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["媒体"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "src": { + "type": "string", + "description": "已经编辑的图片文件 的URL。" + }, + "modifiers": { + "type": "array", + "description": "图片编辑数组。" + }, + "rotation": { + "type": "integer", + "description": "顺时针旋转的角度量。已弃用:请改为使用`modifiers`参数。" + }, + "x": { + "type": "number", + "description": "从 X 轴开始裁剪的位置以占用图片的百分比计算。已弃用。使用`modifiers`代替。" + }, + "y": { + "type": "number", + "description": "从 Y 轴开始裁剪的位置以占用图片的百分比计算。已弃用。使用`modifiers`代替。" + }, + "width": { + "type": "number", + "description": "裁剪宽度以图片所占用的百分比计算。已弃用。使用`modifiers`代替。" + }, + "height": { + "type": "number", + "description": "裁剪高度以图片所站用的百分比计算。已弃用。使用`modifiers`代替。" + } + }, + "required": ["src"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415462-run", + "security": [] + } + }, + "/wp/v2/menu-items": { + "get": { + "summary": "/wp/v2/menu-items", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "after", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之后发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_after", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之后修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "before", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之前发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_before", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之前修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按对象属性排序集合。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search_columns", + "in": "query", + "description": "要搜索的列名称组。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为有一个或多个特定别名的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "将结果集限制为有一个或多个状态的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "tax_relation", + "in": "query", + "description": "基于多个分类法间的关系限制结果集。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "menus", + "in": "query", + "description": "将结果集限制为在menus分类法中指定了特定项目的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "menus_exclude", + "in": "query", + "description": "将结果集限制为在menus分类法中未指定特定项目的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "menu_order", + "in": "query", + "description": "将结果集限制为有特定menu_order的文章。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu_item" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415463-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/menu-items", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "title": { "type": "string", "description": "对象的标题。" }, + "type": { + "type": "string", + "description": "原始表示的对象组,如 \"post_type \"或 \"taxonomy\"。" + }, + "status": { + "type": "string", + "description": "对象的命名状态。" + }, + "parent": { + "type": "integer", + "description": "对象的父对象ID。" + }, + "attr_title": { + "type": "string", + "description": "此菜单项的link元素的title属性的文本。" + }, + "classes": { + "type": "array", + "description": "此菜单项的链接元素的类名称。" + }, + "description": { + "type": "string", + "description": "此菜单项的描述。" + }, + "menu_order": { + "type": "integer", + "description": "导航菜单项的nav_menu_item的DB ID(如果有),否则为0。" + }, + "object": { + "type": "string", + "description": "对象初始的表示类型,如 “分类”、“文章”和“附件”。" + }, + "object_id": { + "type": "integer", + "description": "此菜单项表示的原始对象的数据库 ID,例如文章的 ID 或分类的 term_id。" + }, + "target": { + "type": "string", + "description": "此菜单项的链接元素的target属性。" + }, + "url": { + "type": "string", + "description": "该菜单项指向的URL。" + }, + "xfn": { + "type": "array", + "description": "该菜单项的链接中表示的XFN关系。" + }, + "menus": { + "type": "integer", + "description": "此对象在nav_menu分类法中指定的项。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu_item" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415464-run", + "security": [] + } + }, + "/wp/v2/menu-items/{id}": { + "get": { + "summary": "/wp/v2/menu-items/{id}", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu_item" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415465-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/menu-items/{id}", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "title": { "type": "string", "description": "对象的标题。" }, + "type": { + "type": "string", + "description": "原始表示的对象组,如 \"post_type \"或 \"taxonomy\"。" + }, + "status": { + "type": "string", + "description": "对象的命名状态。" + }, + "parent": { + "type": "integer", + "description": "对象的父对象ID。" + }, + "attr_title": { + "type": "string", + "description": "此菜单项的link元素的title属性的文本。" + }, + "classes": { + "type": "array", + "description": "此菜单项的链接元素的类名称。" + }, + "description": { + "type": "string", + "description": "此菜单项的描述。" + }, + "menu_order": { + "type": "integer", + "description": "导航菜单项的nav_menu_item的DB ID(如果有),否则为0。" + }, + "object": { + "type": "string", + "description": "对象初始的表示类型,如 “分类”、“文章”和“附件”。" + }, + "object_id": { + "type": "integer", + "description": "此菜单项表示的原始对象的数据库 ID,例如文章的 ID 或分类的 term_id。" + }, + "target": { + "type": "string", + "description": "此菜单项的链接元素的target属性。" + }, + "url": { + "type": "string", + "description": "该菜单项指向的URL。" + }, + "xfn": { + "type": "array", + "description": "该菜单项的链接中表示的XFN关系。" + }, + "menus": { + "type": "integer", + "description": "此对象在nav_menu分类法中指定的项。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu_item" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415466-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/menu-items/{id}", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "title": { "type": "string", "description": "对象的标题。" }, + "type": { + "type": "string", + "description": "原始表示的对象组,如 \"post_type \"或 \"taxonomy\"。" + }, + "status": { + "type": "string", + "description": "对象的命名状态。" + }, + "parent": { + "type": "integer", + "description": "对象的父对象ID。" + }, + "attr_title": { + "type": "string", + "description": "此菜单项的link元素的title属性的文本。" + }, + "classes": { + "type": "array", + "description": "此菜单项的链接元素的类名称。" + }, + "description": { + "type": "string", + "description": "此菜单项的描述。" + }, + "menu_order": { + "type": "integer", + "description": "导航菜单项的nav_menu_item的DB ID(如果有),否则为0。" + }, + "object": { + "type": "string", + "description": "对象初始的表示类型,如 “分类”、“文章”和“附件”。" + }, + "object_id": { + "type": "integer", + "description": "此菜单项表示的原始对象的数据库 ID,例如文章的 ID 或分类的 term_id。" + }, + "target": { + "type": "string", + "description": "此菜单项的链接元素的target属性。" + }, + "url": { + "type": "string", + "description": "该菜单项指向的URL。" + }, + "xfn": { + "type": "array", + "description": "该菜单项的链接中表示的XFN关系。" + }, + "menus": { + "type": "integer", + "description": "此对象在nav_menu分类法中指定的项。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu_item" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415467-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/menu-items/{id}", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "title": { "type": "string", "description": "对象的标题。" }, + "type": { + "type": "string", + "description": "原始表示的对象组,如 \"post_type \"或 \"taxonomy\"。" + }, + "status": { + "type": "string", + "description": "对象的命名状态。" + }, + "parent": { + "type": "integer", + "description": "对象的父对象ID。" + }, + "attr_title": { + "type": "string", + "description": "此菜单项的link元素的title属性的文本。" + }, + "classes": { + "type": "array", + "description": "此菜单项的链接元素的类名称。" + }, + "description": { + "type": "string", + "description": "此菜单项的描述。" + }, + "menu_order": { + "type": "integer", + "description": "导航菜单项的nav_menu_item的DB ID(如果有),否则为0。" + }, + "object": { + "type": "string", + "description": "对象初始的表示类型,如 “分类”、“文章”和“附件”。" + }, + "object_id": { + "type": "integer", + "description": "此菜单项表示的原始对象的数据库 ID,例如文章的 ID 或分类的 term_id。" + }, + "target": { + "type": "string", + "description": "此菜单项的链接元素的target属性。" + }, + "url": { + "type": "string", + "description": "该菜单项指向的URL。" + }, + "xfn": { + "type": "array", + "description": "该菜单项的链接中表示的XFN关系。" + }, + "menus": { + "type": "integer", + "description": "此对象在nav_menu分类法中指定的项。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu_item" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415468-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/menu-items/{id}", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu_item" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415469-run", + "security": [] + } + }, + "/wp/v2/menu-items/{id}/autosaves": { + "get": { + "summary": "/wp/v2/menu-items/{id}/autosaves", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "自动保存的父级ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/nav_menu_item-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415470-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/menu-items/{id}/autosaves", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "parent": { + "type": "integer", + "description": "对象的父对象ID。" + }, + "title": { "type": "string", "description": "对象的标题。" }, + "type": { + "type": "string", + "description": "原始表示的对象组,如 \"post_type \"或 \"taxonomy\"。" + }, + "status": { + "type": "string", + "description": "对象的命名状态。" + }, + "attr_title": { + "type": "string", + "description": "此菜单项的link元素的title属性的文本。" + }, + "classes": { + "type": "array", + "description": "此菜单项的链接元素的类名称。" + }, + "description": { + "type": "string", + "description": "此菜单项的描述。" + }, + "menu_order": { + "type": "integer", + "description": "导航菜单项的nav_menu_item的DB ID(如果有),否则为0。" + }, + "object": { + "type": "string", + "description": "对象初始的表示类型,如 “分类”、“文章”和“附件”。" + }, + "object_id": { + "type": "integer", + "description": "此菜单项表示的原始对象的数据库 ID,例如文章的 ID 或分类的 term_id。" + }, + "target": { + "type": "string", + "description": "此菜单项的链接元素的target属性。" + }, + "url": { + "type": "string", + "description": "该菜单项指向的URL。" + }, + "xfn": { + "type": "array", + "description": "该菜单项的链接中表示的XFN关系。" + }, + "menus": { + "type": "integer", + "description": "此对象在nav_menu分类法中指定的项。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/nav_menu_item-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415471-run", + "security": [] + } + }, + "/wp/v2/menu-items/{parent}/autosaves/{id}": { + "get": { + "summary": "/wp/v2/menu-items/{parent}/autosaves/{id}", + "x-apifox-folder": "菜单项", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单项"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "自动保存的父级ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "自动保存的 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/nav_menu_item-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415472-run", + "security": [] + } + }, + "/wp/v2/blocks": { + "get": { + "summary": "/wp/v2/blocks", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "after", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之后发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_after", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之后修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "before", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之前发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_before", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之前修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按文章属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search_columns", + "in": "query", + "description": "要搜索的列名称组。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为有一个或多个特定别名的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "将结果集限制为有一个或多个状态的文章。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415473-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/blocks", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415474-run", + "security": [] + } + }, + "/wp/v2/blocks/{id}": { + "get": { + "summary": "/wp/v2/blocks/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "password", + "in": "query", + "description": "该文章的密码,如文章受密码保护。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415475-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/blocks/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415476-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/blocks/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415477-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/blocks/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415478-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/blocks/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415479-run", + "security": [] + } + }, + "/wp/v2/blocks/{parent}/revisions": { + "get": { + "summary": "/wp/v2/blocks/{parent}/revisions", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按对象属性排序集合。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415480-run", + "security": [] + } + }, + "/wp/v2/blocks/{parent}/revisions/{id}": { + "get": { + "summary": "/wp/v2/blocks/{parent}/revisions/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415481-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/blocks/{parent}/revisions/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为修订版本不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415482-run", + "security": [] + } + }, + "/wp/v2/blocks/{id}/autosaves": { + "get": { + "summary": "/wp/v2/blocks/{id}/autosaves", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "自动保存的父级ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415483-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/blocks/{id}/autosaves", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "parent": { + "type": "integer", + "description": "自动保存的父级ID。" + }, + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415484-run", + "security": [] + } + }, + "/wp/v2/blocks/{parent}/autosaves/{id}": { + "get": { + "summary": "/wp/v2/blocks/{parent}/autosaves/{id}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "自动保存的父级ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "自动保存的 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_block-revision" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415485-run", + "security": [] + } + }, + "/wp/v2/templates": { + "get": { + "summary": "/wp/v2/templates", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "wp_id", + "in": "query", + "description": "限制为指定的文章 id。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "area", + "in": "query", + "description": "限制为指定的模板组件区。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post_type", + "in": "query", + "description": "要获取模板的文章类型。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415486-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/templates", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + } + }, + "required": ["slug"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415487-run", + "security": [] + } + }, + "/wp/v2/templates/lookup": { + "get": { + "summary": "/wp/v2/templates/lookup", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "slug", + "in": "query", + "description": "获取回退所用的模板的别名:", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "is_custom", + "in": "query", + "description": "指明模板是自定义的,或是属于模板层级的一部分", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "template_prefix", + "in": "query", + "description": "所创建模板的模板前缀。 这被用于提取主模板类型,例如在“taxonomy-books”中将提取“taxonomy”。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415488-run", + "security": [] + } + }, + "/wp/v2/templates/{id}": { + "get": { + "summary": "/wp/v2/templates/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415489-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/templates/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415490-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/templates/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415491-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/templates/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415492-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/templates/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415493-run", + "security": [] + } + }, + "/wp/v2/templates/{parent}/revisions": { + "get": { + "summary": "/wp/v2/templates/{parent}/revisions", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按对象属性排序集合。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415494-run", + "security": [] + } + }, + "/wp/v2/templates/{parent}/revisions/{id}": { + "get": { + "summary": "/wp/v2/templates/{parent}/revisions/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415495-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/templates/{parent}/revisions/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为修订版本不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415496-run", + "security": [] + } + }, + "/wp/v2/templates/{id}/autosaves": { + "get": { + "summary": "/wp/v2/templates/{id}/autosaves", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "自动保存的父级ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415497-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/templates/{id}/autosaves", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "parent": { + "type": "integer", + "description": "自动保存的父级ID。" + }, + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415498-run", + "security": [] + } + }, + "/wp/v2/templates/{parent}/autosaves/{id}": { + "get": { + "summary": "/wp/v2/templates/{parent}/autosaves/{id}", + "x-apifox-folder": "模板", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "自动保存的父级ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "自动保存的 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415499-run", + "security": [] + } + }, + "/wp/v2/template-parts": { + "get": { + "summary": "/wp/v2/template-parts", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "wp_id", + "in": "query", + "description": "限制为指定的文章 id。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "area", + "in": "query", + "description": "限制为指定的模板组件区。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post_type", + "in": "query", + "description": "要获取模板的文章类型。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template_part" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415500-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/template-parts", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + }, + "area": { + "type": "string", + "description": "模板组件用途(页眉、页脚等)。" + } + }, + "required": ["slug"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template_part" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415501-run", + "security": [] + } + }, + "/wp/v2/template-parts/lookup": { + "get": { + "summary": "/wp/v2/template-parts/lookup", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "slug", + "in": "query", + "description": "获取回退所用的模板的别名:", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "is_custom", + "in": "query", + "description": "指明模板是自定义的,或是属于模板层级的一部分", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "template_prefix", + "in": "query", + "description": "所创建模板的模板前缀。 这被用于提取主模板类型,例如在“taxonomy-books”中将提取“taxonomy”。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415502-run", + "security": [] + } + }, + "/wp/v2/template-parts/{id}": { + "get": { + "summary": "/wp/v2/template-parts/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template_part" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415503-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/template-parts/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + }, + "area": { + "type": "string", + "description": "模板组件用途(页眉、页脚等)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template_part" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415504-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/template-parts/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + }, + "area": { + "type": "string", + "description": "模板组件用途(页眉、页脚等)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template_part" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415505-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/template-parts/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + }, + "area": { + "type": "string", + "description": "模板组件用途(页眉、页脚等)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template_part" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415506-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/template-parts/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_template_part" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415507-run", + "security": [] + } + }, + "/wp/v2/template-parts/{parent}/revisions": { + "get": { + "summary": "/wp/v2/template-parts/{parent}/revisions", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按对象属性排序集合。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template_part-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415508-run", + "security": [] + } + }, + "/wp/v2/template-parts/{parent}/revisions/{id}": { + "get": { + "summary": "/wp/v2/template-parts/{parent}/revisions/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template_part-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415509-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/template-parts/{parent}/revisions/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为修订版本不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template_part-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415510-run", + "security": [] + } + }, + "/wp/v2/template-parts/{id}/autosaves": { + "get": { + "summary": "/wp/v2/template-parts/{id}/autosaves", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "自动保存的父级ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template_part-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415511-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/template-parts/{id}/autosaves", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "parent": { + "type": "integer", + "description": "自动保存的父级ID。" + }, + "slug": { + "type": "string", + "description": "标识模板的唯一别名。" + }, + "theme": { + "type": "string", + "description": "模板的主题标识符。" + }, + "type": { "type": "string", "description": "模板的类型。" }, + "content": { + "type": "string", + "description": "模板的内容。" + }, + "title": { "type": "string", "description": "模板的标题。" }, + "description": { + "type": "string", + "description": "模板的描述。" + }, + "status": { "type": "string", "description": "模板的状态。" }, + "author": { + "type": "integer", + "description": "模板作者的 ID。" + }, + "area": { + "type": "string", + "description": "模板组件用途(页眉、页脚等)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template_part-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415512-run", + "security": [] + } + }, + "/wp/v2/template-parts/{parent}/autosaves/{id}": { + "get": { + "summary": "/wp/v2/template-parts/{parent}/autosaves/{id}", + "x-apifox-folder": "模板组件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["模板组件"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "自动保存的父级ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "自动保存的 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_template_part-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415513-run", + "security": [] + } + }, + "/wp/v2/navigation": { + "get": { + "summary": "/wp/v2/navigation", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "after", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之后发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_after", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之后修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "before", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之前发布的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "modified_before", + "in": "query", + "description": "将回应限制为一个给定的日期(ISO 8601兼容格式)之前修改过的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按文章属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search_columns", + "in": "query", + "description": "要搜索的列名称组。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为有一个或多个特定别名的文章。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "将结果集限制为有一个或多个状态的文章。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_navigation" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415514-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/navigation", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_navigation" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415515-run", + "security": [] + } + }, + "/wp/v2/navigation/{id}": { + "get": { + "summary": "/wp/v2/navigation/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "password", + "in": "query", + "description": "该文章的密码,如文章受密码保护。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_navigation" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415516-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/navigation/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_navigation" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415517-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/navigation/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_navigation" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415518-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/navigation/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_navigation" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415519-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/navigation/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "文章的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_navigation" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415520-run", + "security": [] + } + }, + "/wp/v2/navigation/{parent}/revisions": { + "get": { + "summary": "/wp/v2/navigation/{parent}/revisions", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按对象属性排序集合。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_navigation-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415521-run", + "security": [] + } + }, + "/wp/v2/navigation/{parent}/revisions/{id}": { + "get": { + "summary": "/wp/v2/navigation/{parent}/revisions/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_navigation-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415522-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/navigation/{parent}/revisions/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "修订版的父级 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "修订版的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为修订版本不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_navigation-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415523-run", + "security": [] + } + }, + "/wp/v2/navigation/{id}/autosaves": { + "get": { + "summary": "/wp/v2/navigation/{id}/autosaves", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "自动保存的父级ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_navigation-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415524-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/navigation/{id}/autosaves", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "parent": { + "type": "integer", + "description": "自动保存的父级ID。" + }, + "date": { + "type": "string", + "description": "文章发布的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "该文章发布的 GMT 日期。" + }, + "slug": { + "type": "string", + "description": "文章的字母数字标识符,其类型是唯一的。" + }, + "status": { + "type": "string", + "description": "文章的命名状态。" + }, + "password": { + "type": "string", + "description": "用来保护内容和摘要的密码。" + }, + "title": { "type": "string", "description": "文章的标题。" }, + "content": { + "type": "string", + "description": "文章的内容。" + }, + "template": { + "type": "string", + "description": "用于显示文章的主题文件。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_navigation-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415525-run", + "security": [] + } + }, + "/wp/v2/navigation/{parent}/autosaves/{id}": { + "get": { + "summary": "/wp/v2/navigation/{parent}/autosaves/{id}", + "x-apifox-folder": "导航", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["导航"], + "parameters": [ + { + "name": "parent", + "in": "path", + "description": "自动保存的父级ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "id", + "in": "path", + "description": "自动保存的 ID。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/wp_navigation-revision" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415526-run", + "security": [] + } + }, + "/wp/v2/types": { + "get": { + "summary": "/wp/v2/types", + "x-apifox-folder": "类型", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["类型"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/type" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415527-run", + "security": [] + } + }, + "/wp/v2/types/{type}": { + "get": { + "summary": "/wp/v2/types/{type}", + "x-apifox-folder": "类型", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["类型"], + "parameters": [ + { + "name": "type", + "in": "path", + "description": "文章类型的英数字标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/type" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415528-run", + "security": [] + } + }, + "/wp/v2/statuses": { + "get": { + "summary": "/wp/v2/statuses", + "x-apifox-folder": "状态", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["状态"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/status" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415529-run", + "security": [] + } + }, + "/wp/v2/statuses/{status}": { + "get": { + "summary": "/wp/v2/statuses/{status}", + "x-apifox-folder": "状态", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["状态"], + "parameters": [ + { + "name": "status", + "in": "path", + "description": "状态的英数字标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/status" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415530-run", + "security": [] + } + }, + "/wp/v2/taxonomies": { + "get": { + "summary": "/wp/v2/taxonomies", + "x-apifox-folder": "关联", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["关联"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "type", + "in": "query", + "description": "限制结果为关联到特定文章类型的分类法。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/taxonomy" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415531-run", + "security": [] + } + }, + "/wp/v2/taxonomies/{taxonomy}": { + "get": { + "summary": "/wp/v2/taxonomies/{taxonomy}", + "x-apifox-folder": "关联", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["关联"], + "parameters": [ + { + "name": "taxonomy", + "in": "path", + "description": "分类法的英数字标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/taxonomy" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415532-run", + "security": [] + } + }, + "/wp/v2/categories": { + "get": { + "summary": "/wp/v2/categories", + "x-apifox-folder": "分类", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["分类"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按项目属性排序集合。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "hide_empty", + "in": "query", + "description": "是否隐藏未被指定到任何文章的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "将结果集限制为指定给特定父项目的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post", + "in": "query", + "description": "将结果集限制为指定给特定文章的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为具有一个或多个别名的分类法项目。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/category" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415533-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/categories", + "x-apifox-folder": "分类", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["分类"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "parent": { "type": "integer", "description": "父项目ID。" }, + "meta": { "type": "string", "description": "元字段。" } + }, + "required": ["name"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/category" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415534-run", + "security": [] + } + }, + "/wp/v2/categories/{id}": { + "get": { + "summary": "/wp/v2/categories/{id}", + "x-apifox-folder": "分类", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["分类"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/category" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415535-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/categories/{id}", + "x-apifox-folder": "分类", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["分类"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "parent": { "type": "integer", "description": "父项目ID。" }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/category" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415536-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/categories/{id}", + "x-apifox-folder": "分类", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["分类"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "parent": { "type": "integer", "description": "父项目ID。" }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/category" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415537-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/categories/{id}", + "x-apifox-folder": "分类", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["分类"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "parent": { "type": "integer", "description": "父项目ID。" }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/category" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415538-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/categories/{id}", + "x-apifox-folder": "分类", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["分类"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为项目不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/category" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415539-run", + "security": [] + } + }, + "/wp/v2/tags": { + "get": { + "summary": "/wp/v2/tags", + "x-apifox-folder": "标签", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["标签"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按项目属性排序集合。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "hide_empty", + "in": "query", + "description": "是否隐藏未被指定到任何文章的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post", + "in": "query", + "description": "将结果集限制为指定给特定文章的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为具有一个或多个别名的分类法项目。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/tag" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415540-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/tags", + "x-apifox-folder": "标签", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["标签"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" } + }, + "required": ["name"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/tag" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415541-run", + "security": [] + } + }, + "/wp/v2/tags/{id}": { + "get": { + "summary": "/wp/v2/tags/{id}", + "x-apifox-folder": "标签", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["标签"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/tag" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415542-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/tags/{id}", + "x-apifox-folder": "标签", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["标签"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/tag" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415543-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/tags/{id}", + "x-apifox-folder": "标签", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["标签"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/tag" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415544-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/tags/{id}", + "x-apifox-folder": "标签", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["标签"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/tag" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415545-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/tags/{id}", + "x-apifox-folder": "标签", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["标签"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为项目不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/tag" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415546-run", + "security": [] + } + }, + "/wp/v2/menus": { + "get": { + "summary": "/wp/v2/menus", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按项目属性排序集合。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "hide_empty", + "in": "query", + "description": "是否隐藏未被指定到任何文章的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post", + "in": "query", + "description": "将结果集限制为指定给特定文章的项目。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为具有一个或多个别名的分类法项目。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415547-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/menus", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "locations": { + "type": "array", + "description": "分配给菜单的位置。" + }, + "auto_add": { + "type": "string", + "description": "是否自动添加顶级页面到此菜单。" + } + }, + "required": ["name"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415548-run", + "security": [] + } + }, + "/wp/v2/menus/{id}": { + "get": { + "summary": "/wp/v2/menus/{id}", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415549-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/menus/{id}", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "locations": { + "type": "array", + "description": "分配给菜单的位置。" + }, + "auto_add": { + "type": "string", + "description": "是否自动添加顶级页面到此菜单。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415550-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/menus/{id}", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "locations": { + "type": "array", + "description": "分配给菜单的位置。" + }, + "auto_add": { + "type": "string", + "description": "是否自动添加顶级页面到此菜单。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415551-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/menus/{id}", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "项目的HTML描述。" + }, + "name": { + "type": "string", + "description": "项目的HTML标题。" + }, + "slug": { + "type": "string", + "description": "项目类型而言的英数字标识符。" + }, + "meta": { "type": "string", "description": "元字段。" }, + "locations": { + "type": "array", + "description": "分配给菜单的位置。" + }, + "auto_add": { + "type": "string", + "description": "是否自动添加顶级页面到此菜单。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415552-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/menus/{id}", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "项目的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为项目不能被移动到回收站。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/nav_menu" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415553-run", + "security": [] + } + }, + "/wp/v2/users": { + "get": { + "summary": "/wp/v2/users", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按用户属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果集限制为具有一个或多个别名的用户。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "roles", + "in": "query", + "description": "将结果集限制为匹配至少一个角色的用户,接受.csv格式列表或单个角色。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "capabilities", + "in": "query", + "description": "将结果集限制为匹配至少一项提供的特定功能的用户。接受 csv 列表或单个功能。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "who", + "in": "query", + "description": "将结果集限制为用户中的所有作者。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "has_published_posts", + "in": "query", + "description": "将结果限制于已发布文章的用户。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415554-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/users", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户的登录名。" + }, + "name": { "type": "string", "description": "用户的显示名。" }, + "first_name": { + "type": "string", + "description": "用户的名字。" + }, + "last_name": { + "type": "string", + "description": "用户的姓氏。" + }, + "email": { + "type": "string", + "description": "用户的电子邮箱地址。" + }, + "url": { "type": "string", "description": "用户的URL。" }, + "description": { + "type": "string", + "description": "用户的描述。" + }, + "locale": { + "type": "string", + "description": "用户的地区语言。" + }, + "nickname": { + "type": "string", + "description": "用户的昵称。" + }, + "slug": { + "type": "string", + "description": "用户的英数字标识符。" + }, + "roles": { + "type": "array", + "description": "用户被赋予的角色。" + }, + "password": { + "type": "string", + "description": "用户的密码(从不被包含)。" + }, + "meta": { "type": "string", "description": "元字段。" } + }, + "required": ["username", "email", "password"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415555-run", + "security": [] + } + }, + "/wp/v2/users/{id}": { + "get": { + "summary": "/wp/v2/users/{id}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "用户的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415556-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/users/{id}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "用户的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户的登录名。" + }, + "name": { "type": "string", "description": "用户的显示名。" }, + "first_name": { + "type": "string", + "description": "用户的名字。" + }, + "last_name": { + "type": "string", + "description": "用户的姓氏。" + }, + "email": { + "type": "string", + "description": "用户的电子邮箱地址。" + }, + "url": { "type": "string", "description": "用户的URL。" }, + "description": { + "type": "string", + "description": "用户的描述。" + }, + "locale": { + "type": "string", + "description": "用户的地区语言。" + }, + "nickname": { + "type": "string", + "description": "用户的昵称。" + }, + "slug": { + "type": "string", + "description": "用户的英数字标识符。" + }, + "roles": { + "type": "array", + "description": "用户被赋予的角色。" + }, + "password": { + "type": "string", + "description": "用户的密码(从不被包含)。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415557-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/users/{id}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "用户的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户的登录名。" + }, + "name": { "type": "string", "description": "用户的显示名。" }, + "first_name": { + "type": "string", + "description": "用户的名字。" + }, + "last_name": { + "type": "string", + "description": "用户的姓氏。" + }, + "email": { + "type": "string", + "description": "用户的电子邮箱地址。" + }, + "url": { "type": "string", "description": "用户的URL。" }, + "description": { + "type": "string", + "description": "用户的描述。" + }, + "locale": { + "type": "string", + "description": "用户的地区语言。" + }, + "nickname": { + "type": "string", + "description": "用户的昵称。" + }, + "slug": { + "type": "string", + "description": "用户的英数字标识符。" + }, + "roles": { + "type": "array", + "description": "用户被赋予的角色。" + }, + "password": { + "type": "string", + "description": "用户的密码(从不被包含)。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415558-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/users/{id}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "用户的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户的登录名。" + }, + "name": { "type": "string", "description": "用户的显示名。" }, + "first_name": { + "type": "string", + "description": "用户的名字。" + }, + "last_name": { + "type": "string", + "description": "用户的姓氏。" + }, + "email": { + "type": "string", + "description": "用户的电子邮箱地址。" + }, + "url": { "type": "string", "description": "用户的URL。" }, + "description": { + "type": "string", + "description": "用户的描述。" + }, + "locale": { + "type": "string", + "description": "用户的地区语言。" + }, + "nickname": { + "type": "string", + "description": "用户的昵称。" + }, + "slug": { + "type": "string", + "description": "用户的英数字标识符。" + }, + "roles": { + "type": "array", + "description": "用户被赋予的角色。" + }, + "password": { + "type": "string", + "description": "用户的密码(从不被包含)。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415559-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/users/{id}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "用户的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为用户不能被移动到回收站。" + }, + "reassign": { + "type": "integer", + "description": "将被删除用户的文章和链接重新指定到此用户ID。" + } + }, + "required": ["reassign"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415560-run", + "security": [] + } + }, + "/wp/v2/users/me": { + "get": { + "summary": "/wp/v2/users/me", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415561-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/users/me", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户的登录名。" + }, + "name": { "type": "string", "description": "用户的显示名。" }, + "first_name": { + "type": "string", + "description": "用户的名字。" + }, + "last_name": { + "type": "string", + "description": "用户的姓氏。" + }, + "email": { + "type": "string", + "description": "用户的电子邮箱地址。" + }, + "url": { "type": "string", "description": "用户的URL。" }, + "description": { + "type": "string", + "description": "用户的描述。" + }, + "locale": { + "type": "string", + "description": "用户的地区语言。" + }, + "nickname": { + "type": "string", + "description": "用户的昵称。" + }, + "slug": { + "type": "string", + "description": "用户的英数字标识符。" + }, + "roles": { + "type": "array", + "description": "用户被赋予的角色。" + }, + "password": { + "type": "string", + "description": "用户的密码(从不被包含)。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415562-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/users/me", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户的登录名。" + }, + "name": { "type": "string", "description": "用户的显示名。" }, + "first_name": { + "type": "string", + "description": "用户的名字。" + }, + "last_name": { + "type": "string", + "description": "用户的姓氏。" + }, + "email": { + "type": "string", + "description": "用户的电子邮箱地址。" + }, + "url": { "type": "string", "description": "用户的URL。" }, + "description": { + "type": "string", + "description": "用户的描述。" + }, + "locale": { + "type": "string", + "description": "用户的地区语言。" + }, + "nickname": { + "type": "string", + "description": "用户的昵称。" + }, + "slug": { + "type": "string", + "description": "用户的英数字标识符。" + }, + "roles": { + "type": "array", + "description": "用户被赋予的角色。" + }, + "password": { + "type": "string", + "description": "用户的密码(从不被包含)。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415563-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/users/me", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "username": { + "type": "string", + "description": "用户的登录名。" + }, + "name": { "type": "string", "description": "用户的显示名。" }, + "first_name": { + "type": "string", + "description": "用户的名字。" + }, + "last_name": { + "type": "string", + "description": "用户的姓氏。" + }, + "email": { + "type": "string", + "description": "用户的电子邮箱地址。" + }, + "url": { "type": "string", "description": "用户的URL。" }, + "description": { + "type": "string", + "description": "用户的描述。" + }, + "locale": { + "type": "string", + "description": "用户的地区语言。" + }, + "nickname": { + "type": "string", + "description": "用户的昵称。" + }, + "slug": { + "type": "string", + "description": "用户的英数字标识符。" + }, + "roles": { + "type": "array", + "description": "用户被赋予的角色。" + }, + "password": { + "type": "string", + "description": "用户的密码(从不被包含)。" + }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415564-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/users/me", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "要求为true,因为用户不能被移动到回收站。" + }, + "reassign": { + "type": "integer", + "description": "将被删除用户的文章和链接重新指定到此用户ID。" + } + }, + "required": ["reassign"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/user" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415565-run", + "security": [] + } + }, + "/wp/v2/users/{user_id}/application-passwords": { + "get": { + "summary": "/wp/v2/users/{user_id}/application-passwords", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415566-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/users/{user_id}/application-passwords", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "app_id": { + "type": "string", + "description": "由应用程序提供的用于唯一识别的 UUID。建议使用含有 URL 或 DNS 命名空间的 UUID v5。" + }, + "name": { + "type": "string", + "description": "应用程序密码名称。" + } + }, + "required": ["name"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415567-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/users/{user_id}/application-passwords", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415568-run", + "security": [] + } + }, + "/wp/v2/users/{user_id}/application-passwords/introspect": { + "get": { + "summary": "/wp/v2/users/{user_id}/application-passwords/introspect", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415569-run", + "security": [] + } + }, + "/wp/v2/users/{user_id}/application-passwords/{uuid}": { + "get": { + "summary": "/wp/v2/users/{user_id}/application-passwords/{uuid}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "uuid", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415570-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/users/{user_id}/application-passwords/{uuid}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "uuid", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "app_id": { + "type": "string", + "description": "由应用程序提供的用于唯一识别的 UUID。建议使用含有 URL 或 DNS 命名空间的 UUID v5。" + }, + "name": { + "type": "string", + "description": "应用程序密码名称。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415571-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/users/{user_id}/application-passwords/{uuid}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "uuid", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "app_id": { + "type": "string", + "description": "由应用程序提供的用于唯一识别的 UUID。建议使用含有 URL 或 DNS 命名空间的 UUID v5。" + }, + "name": { + "type": "string", + "description": "应用程序密码名称。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415572-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/users/{user_id}/application-passwords/{uuid}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "uuid", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "app_id": { + "type": "string", + "description": "由应用程序提供的用于唯一识别的 UUID。建议使用含有 URL 或 DNS 命名空间的 UUID v5。" + }, + "name": { + "type": "string", + "description": "应用程序密码名称。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415573-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/users/{user_id}/application-passwords/{uuid}", + "x-apifox-folder": "用户", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["用户"], + "parameters": [ + { + "name": "user_id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "uuid", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/application-password" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415574-run", + "security": [] + } + }, + "/wp/v2/comments": { + "get": { + "summary": "/wp/v2/comments", + "x-apifox-folder": "评论", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["评论"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "after", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之后发布的评论。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author", + "in": "query", + "description": "将结果集限制为指定给特定用户ID的评论,需要授权。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author_exclude", + "in": "query", + "description": "确保结果集排除指定给特定用户ID的评论,需要授权。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author_email", + "in": "query", + "description": "将结果集限制为指定作者的电子邮箱地址,需要授权。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "before", + "in": "query", + "description": "将回应限制在一个给定的ISO8601兼容日期之前发布的评论。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按评论属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent", + "in": "query", + "description": "将结果集限制为指定父ID的评论。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "parent_exclude", + "in": "query", + "description": "确保结果集排除指定父ID的评论。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post", + "in": "query", + "description": "将结果集限制为关联到指定文章ID的评论。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "将结果集限制为设置特定状态的评论,需要授权。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "type", + "in": "query", + "description": "将结果集限制为设置特定类型的评论,需要授权。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "password", + "in": "query", + "description": "该文章的密码,如文章受密码保护。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/comment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415575-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/comments", + "x-apifox-folder": "评论", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["评论"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "author": { + "type": "integer", + "description": "用户对象的ID,如果作者是用户。" + }, + "author_email": { + "type": "string", + "description": "评论者的电子邮箱地址。" + }, + "author_ip": { + "type": "string", + "description": "评论者的IP地址。" + }, + "author_name": { + "type": "string", + "description": "评论者的显示名。" + }, + "author_url": { + "type": "string", + "description": "评论者的网址。" + }, + "author_user_agent": { + "type": "string", + "description": "评论者的 User agent。" + }, + "content": { + "type": "string", + "description": "评论的内容。" + }, + "date": { + "type": "string", + "description": "评论发表的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "评论发表的 GMT 日期。" + }, + "parent": { + "type": "integer", + "description": "评论的父级ID。" + }, + "post": { + "type": "integer", + "description": "关联文章对象的ID。" + }, + "status": { "type": "string", "description": "评论的状态。" }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/comment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415576-run", + "security": [] + } + }, + "/wp/v2/comments/{id}": { + "get": { + "summary": "/wp/v2/comments/{id}", + "x-apifox-folder": "评论", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["评论"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "评论的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "password", + "in": "query", + "description": "评论所属文章的密码(如果该文章被密码保护)。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/comment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415577-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/comments/{id}", + "x-apifox-folder": "评论", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["评论"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "评论的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "author": { + "type": "integer", + "description": "用户对象的ID,如果作者是用户。" + }, + "author_email": { + "type": "string", + "description": "评论者的电子邮箱地址。" + }, + "author_ip": { + "type": "string", + "description": "评论者的IP地址。" + }, + "author_name": { + "type": "string", + "description": "评论者的显示名。" + }, + "author_url": { + "type": "string", + "description": "评论者的网址。" + }, + "author_user_agent": { + "type": "string", + "description": "评论者的 User agent。" + }, + "content": { + "type": "string", + "description": "评论的内容。" + }, + "date": { + "type": "string", + "description": "评论发表的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "评论发表的 GMT 日期。" + }, + "parent": { + "type": "integer", + "description": "评论的父级ID。" + }, + "post": { + "type": "integer", + "description": "关联文章对象的ID。" + }, + "status": { "type": "string", "description": "评论的状态。" }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/comment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415578-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/comments/{id}", + "x-apifox-folder": "评论", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["评论"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "评论的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "author": { + "type": "integer", + "description": "用户对象的ID,如果作者是用户。" + }, + "author_email": { + "type": "string", + "description": "评论者的电子邮箱地址。" + }, + "author_ip": { + "type": "string", + "description": "评论者的IP地址。" + }, + "author_name": { + "type": "string", + "description": "评论者的显示名。" + }, + "author_url": { + "type": "string", + "description": "评论者的网址。" + }, + "author_user_agent": { + "type": "string", + "description": "评论者的 User agent。" + }, + "content": { + "type": "string", + "description": "评论的内容。" + }, + "date": { + "type": "string", + "description": "评论发表的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "评论发表的 GMT 日期。" + }, + "parent": { + "type": "integer", + "description": "评论的父级ID。" + }, + "post": { + "type": "integer", + "description": "关联文章对象的ID。" + }, + "status": { "type": "string", "description": "评论的状态。" }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/comment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415579-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/comments/{id}", + "x-apifox-folder": "评论", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["评论"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "评论的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "author": { + "type": "integer", + "description": "用户对象的ID,如果作者是用户。" + }, + "author_email": { + "type": "string", + "description": "评论者的电子邮箱地址。" + }, + "author_ip": { + "type": "string", + "description": "评论者的IP地址。" + }, + "author_name": { + "type": "string", + "description": "评论者的显示名。" + }, + "author_url": { + "type": "string", + "description": "评论者的网址。" + }, + "author_user_agent": { + "type": "string", + "description": "评论者的 User agent。" + }, + "content": { + "type": "string", + "description": "评论的内容。" + }, + "date": { + "type": "string", + "description": "评论发表的日期(站点时区)。" + }, + "date_gmt": { + "type": "string", + "description": "评论发表的 GMT 日期。" + }, + "parent": { + "type": "integer", + "description": "评论的父级ID。" + }, + "post": { + "type": "integer", + "description": "关联文章对象的ID。" + }, + "status": { "type": "string", "description": "评论的状态。" }, + "meta": { "type": "string", "description": "元字段。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/comment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415580-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/comments/{id}", + "x-apifox-folder": "评论", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["评论"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "评论的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "是否绕过回收站并强行删除。" + }, + "password": { + "type": "string", + "description": "评论所属文章的密码(如果该文章被密码保护)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/comment" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415581-run", + "security": [] + } + }, + "/wp/v2/search": { + "get": { + "summary": "/wp/v2/search", + "x-apifox-folder": "搜索", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["搜索"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "type", + "in": "query", + "description": "限制结果为一种对象类型。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "subtype", + "in": "query", + "description": "限制结果为一种或多种对象子类型。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "exclude", + "in": "query", + "description": "确保结果集排除指定ID。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "include", + "in": "query", + "description": "将结果集限制为指定ID。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/search-result" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415582-run", + "security": [] + } + }, + "/wp/v2/block-renderer/{name}": { + "get": { + "summary": "/wp/v2/block-renderer/{name}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "此区块的唯一注册名。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "attributes", + "in": "query", + "description": "此区块的属性。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "post_id", + "in": "query", + "description": "文章上下文的ID。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/rendered-block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415583-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/block-renderer/{name}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "此区块的唯一注册名。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "context": { + "type": "string", + "description": "请求提出的范围,用于决定回应包含的字段。" + }, + "attributes": { + "type": "string", + "description": "此区块的属性。" + }, + "post_id": { + "type": "integer", + "description": "文章上下文的ID。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/rendered-block" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415584-run", + "security": [] + } + }, + "/wp/v2/block-types": { + "get": { + "summary": "/wp/v2/block-types", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "namespace", + "in": "query", + "description": "区块命名空间。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/block-type" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415585-run", + "security": [] + } + }, + "/wp/v2/block-types/{namespace}": { + "get": { + "summary": "/wp/v2/block-types/{namespace}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "namespace", + "in": "path", + "description": "区块命名空间。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/block-type" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415586-run", + "security": [] + } + }, + "/wp/v2/block-types/{namespace}/{name}": { + "get": { + "summary": "/wp/v2/block-types/{namespace}/{name}", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "区块名称", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "namespace", + "in": "path", + "description": "区块命名空间。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/block-type" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415587-run", + "security": [] + } + }, + "/wp/v2/global-styles/themes/{stylesheet}/variations": { + "get": { + "summary": "/wp/v2/global-styles/themes/{stylesheet}/variations", + "x-apifox-folder": "全局样式", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["全局样式"], + "parameters": [ + { + "name": "stylesheet", + "in": "path", + "description": "主题标识符", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415588-run", + "security": [] + } + }, + "/wp/v2/global-styles/themes/{stylesheet}": { + "get": { + "summary": "/wp/v2/global-styles/themes/{stylesheet}", + "x-apifox-folder": "全局样式", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["全局样式"], + "parameters": [ + { + "name": "stylesheet", + "in": "path", + "description": "主题标识符", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415589-run", + "security": [] + } + }, + "/wp/v2/global-styles/{id}": { + "get": { + "summary": "/wp/v2/global-styles/{id}", + "x-apifox-folder": "全局样式", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["全局样式"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "该模板的ID", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_global_styles" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415590-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/global-styles/{id}", + "x-apifox-folder": "全局样式", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["全局样式"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "styles": { "type": "string", "description": "全局样式。" }, + "settings": { "type": "string", "description": "全局设置。" }, + "title": { + "type": "string", + "description": "全局样式变体的标题。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_global_styles" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415591-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/global-styles/{id}", + "x-apifox-folder": "全局样式", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["全局样式"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "styles": { "type": "string", "description": "全局样式。" }, + "settings": { "type": "string", "description": "全局设置。" }, + "title": { + "type": "string", + "description": "全局样式变体的标题。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_global_styles" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415592-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/global-styles/{id}", + "x-apifox-folder": "全局样式", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["全局样式"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "styles": { "type": "string", "description": "全局样式。" }, + "settings": { "type": "string", "description": "全局设置。" }, + "title": { + "type": "string", + "description": "全局样式变体的标题。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp_global_styles" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415593-run", + "security": [] + } + }, + "/wp/v2/settings": { + "get": { + "summary": "/wp/v2/settings", + "x-apifox-folder": "设置", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["设置"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/settings" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415594-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/settings", + "x-apifox-folder": "设置", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["设置"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "title": { "type": "string", "description": "站点标题。" }, + "description": { + "type": "string", + "description": "站点副标题。" + }, + "url": { "type": "string", "description": "站点URL。" }, + "email": { + "type": "string", + "description": "此地址被用作管理用途,如新用户通知。" + }, + "timezone": { + "type": "string", + "description": "和您在同一个时区的城市。" + }, + "date_format": { + "type": "string", + "description": "对所有日期字符串适用的日期格式。" + }, + "time_format": { + "type": "string", + "description": "对所有时间字符串适用的时间格式。" + }, + "start_of_week": { + "type": "integer", + "description": "一周从周几开始。" + }, + "language": { + "type": "string", + "description": "WordPress地区语言代码。" + }, + "use_smilies": { + "type": "string", + "description": "将表情符号如:-)和:-P转换为图片显示。" + }, + "default_category": { + "type": "integer", + "description": "默认文章分类。" + }, + "default_post_format": { + "type": "string", + "description": "默认文章形式。" + }, + "posts_per_page": { + "type": "integer", + "description": "最多显示的博客页面数量。" + }, + "show_on_front": { + "type": "string", + "description": "需要在首页上显示的项目" + }, + "page_on_front": { + "type": "integer", + "description": "需要在首页上显示的页面 ID" + }, + "page_for_posts": { + "type": "integer", + "description": "需要显示最新文章的页面 ID" + }, + "default_ping_status": { + "type": "string", + "description": "允许其他博客发送链接通知(pingback和trackback)到新文章。" + }, + "default_comment_status": { + "type": "string", + "description": "允许他人在新文章上发表评论。" + }, + "site_logo": { + "type": "integer", + "description": "站点 logo" + }, + "site_icon": { + "type": "integer", + "description": "站点图标。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/settings" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415595-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/settings", + "x-apifox-folder": "设置", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["设置"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "title": { "type": "string", "description": "站点标题。" }, + "description": { + "type": "string", + "description": "站点副标题。" + }, + "url": { "type": "string", "description": "站点URL。" }, + "email": { + "type": "string", + "description": "此地址被用作管理用途,如新用户通知。" + }, + "timezone": { + "type": "string", + "description": "和您在同一个时区的城市。" + }, + "date_format": { + "type": "string", + "description": "对所有日期字符串适用的日期格式。" + }, + "time_format": { + "type": "string", + "description": "对所有时间字符串适用的时间格式。" + }, + "start_of_week": { + "type": "integer", + "description": "一周从周几开始。" + }, + "language": { + "type": "string", + "description": "WordPress地区语言代码。" + }, + "use_smilies": { + "type": "string", + "description": "将表情符号如:-)和:-P转换为图片显示。" + }, + "default_category": { + "type": "integer", + "description": "默认文章分类。" + }, + "default_post_format": { + "type": "string", + "description": "默认文章形式。" + }, + "posts_per_page": { + "type": "integer", + "description": "最多显示的博客页面数量。" + }, + "show_on_front": { + "type": "string", + "description": "需要在首页上显示的项目" + }, + "page_on_front": { + "type": "integer", + "description": "需要在首页上显示的页面 ID" + }, + "page_for_posts": { + "type": "integer", + "description": "需要显示最新文章的页面 ID" + }, + "default_ping_status": { + "type": "string", + "description": "允许其他博客发送链接通知(pingback和trackback)到新文章。" + }, + "default_comment_status": { + "type": "string", + "description": "允许他人在新文章上发表评论。" + }, + "site_logo": { + "type": "integer", + "description": "站点 logo" + }, + "site_icon": { + "type": "integer", + "description": "站点图标。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/settings" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415596-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/settings", + "x-apifox-folder": "设置", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["设置"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "title": { "type": "string", "description": "站点标题。" }, + "description": { + "type": "string", + "description": "站点副标题。" + }, + "url": { "type": "string", "description": "站点URL。" }, + "email": { + "type": "string", + "description": "此地址被用作管理用途,如新用户通知。" + }, + "timezone": { + "type": "string", + "description": "和您在同一个时区的城市。" + }, + "date_format": { + "type": "string", + "description": "对所有日期字符串适用的日期格式。" + }, + "time_format": { + "type": "string", + "description": "对所有时间字符串适用的时间格式。" + }, + "start_of_week": { + "type": "integer", + "description": "一周从周几开始。" + }, + "language": { + "type": "string", + "description": "WordPress地区语言代码。" + }, + "use_smilies": { + "type": "string", + "description": "将表情符号如:-)和:-P转换为图片显示。" + }, + "default_category": { + "type": "integer", + "description": "默认文章分类。" + }, + "default_post_format": { + "type": "string", + "description": "默认文章形式。" + }, + "posts_per_page": { + "type": "integer", + "description": "最多显示的博客页面数量。" + }, + "show_on_front": { + "type": "string", + "description": "需要在首页上显示的项目" + }, + "page_on_front": { + "type": "integer", + "description": "需要在首页上显示的页面 ID" + }, + "page_for_posts": { + "type": "integer", + "description": "需要显示最新文章的页面 ID" + }, + "default_ping_status": { + "type": "string", + "description": "允许其他博客发送链接通知(pingback和trackback)到新文章。" + }, + "default_comment_status": { + "type": "string", + "description": "允许他人在新文章上发表评论。" + }, + "site_logo": { + "type": "integer", + "description": "站点 logo" + }, + "site_icon": { + "type": "integer", + "description": "站点图标。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/settings" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415597-run", + "security": [] + } + }, + "/wp/v2/themes": { + "get": { + "summary": "/wp/v2/themes", + "x-apifox-folder": "主题", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["主题"], + "parameters": [ + { + "name": "status", + "in": "query", + "description": "将结果集限制为指定了一个或多个状态的主题。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/theme" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415598-run", + "security": [] + } + }, + "/wp/v2/themes/{stylesheet}": { + "get": { + "summary": "/wp/v2/themes/{stylesheet}", + "x-apifox-folder": "主题", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["主题"], + "parameters": [ + { + "name": "stylesheet", + "in": "path", + "description": "主题的样式表。这是主题的唯一标识。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/theme" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415599-run", + "security": [] + } + }, + "/wp/v2/plugins": { + "get": { + "summary": "/wp/v2/plugins", + "x-apifox-folder": "插件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["插件"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "status", + "in": "query", + "description": "限制结果集为具有给定状态的插件。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/plugin" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415600-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/plugins", + "x-apifox-folder": "插件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["插件"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "slug": { + "type": "string", + "description": "WordPress.org插件目录别名。" + }, + "status": { + "type": "string", + "description": "插件启用状态。" + } + }, + "required": ["slug"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/plugin" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415601-run", + "security": [] + } + }, + "/wp/v2/plugins/{plugin}": { + "get": { + "summary": "/wp/v2/plugins/{plugin}", + "x-apifox-folder": "插件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["插件"], + "parameters": [ + { + "name": "plugin", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/plugin" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415602-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/plugins/{plugin}", + "x-apifox-folder": "插件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["插件"], + "parameters": [ + { + "name": "plugin", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "context": { + "type": "string", + "description": "请求提出的范围,用于决定回应包含的字段。" + }, + "status": { + "type": "string", + "description": "插件启用状态。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/plugin" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415603-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/plugins/{plugin}", + "x-apifox-folder": "插件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["插件"], + "parameters": [ + { + "name": "plugin", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "context": { + "type": "string", + "description": "请求提出的范围,用于决定回应包含的字段。" + }, + "status": { + "type": "string", + "description": "插件启用状态。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/plugin" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415604-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/plugins/{plugin}", + "x-apifox-folder": "插件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["插件"], + "parameters": [ + { + "name": "plugin", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "context": { + "type": "string", + "description": "请求提出的范围,用于决定回应包含的字段。" + }, + "status": { + "type": "string", + "description": "插件启用状态。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/plugin" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415605-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/plugins/{plugin}", + "x-apifox-folder": "插件", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["插件"], + "parameters": [ + { + "name": "plugin", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "context": { + "type": "string", + "description": "请求提出的范围,用于决定回应包含的字段。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/plugin" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415606-run", + "security": [] + } + }, + "/wp/v2/sidebars": { + "get": { + "summary": "/wp/v2/sidebars", + "x-apifox-folder": "边栏", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["边栏"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/sidebar" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415607-run", + "security": [] + } + }, + "/wp/v2/sidebars/{id}": { + "get": { + "summary": "/wp/v2/sidebars/{id}", + "x-apifox-folder": "边栏", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["边栏"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "已注册的边栏ID", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/sidebar" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415608-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/sidebars/{id}", + "x-apifox-folder": "边栏", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["边栏"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "widgets": { "type": "array", "description": "嵌套小工具。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/sidebar" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415609-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/sidebars/{id}", + "x-apifox-folder": "边栏", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["边栏"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "widgets": { "type": "array", "description": "嵌套小工具。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/sidebar" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415610-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/sidebars/{id}", + "x-apifox-folder": "边栏", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["边栏"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "widgets": { "type": "array", "description": "嵌套小工具。" } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/sidebar" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415611-run", + "security": [] + } + }, + "/wp/v2/widget-types": { + "get": { + "summary": "/wp/v2/widget-types", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget-type" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415612-run", + "security": [] + } + }, + "/wp/v2/widget-types/{id}": { + "get": { + "summary": "/wp/v2/widget-types/{id}", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "小工具类型id。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget-type" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415613-run", + "security": [] + } + }, + "/wp/v2/widget-types/{id}/encode": { + "post": { + "summary": "/wp/v2/widget-types/{id}/encode", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "小工具类型id。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "instance": { + "type": "string", + "description": "小工具的当前设置实例。" + }, + "form_data": { + "type": "string", + "description": "序列化小工具表单数据,以编码为设置实例。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415614-run", + "security": [] + } + }, + "/wp/v2/widget-types/{id}/render": { + "post": { + "summary": "/wp/v2/widget-types/{id}/render", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "小工具类型id。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "instance": { + "type": "string", + "description": "小工具的当前设置实例。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415615-run", + "security": [] + } + }, + "/wp/v2/widgets": { + "get": { + "summary": "/wp/v2/widgets", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "sidebar", + "in": "query", + "description": "返回小工具的侧边栏。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415616-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/widgets", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "小工具的唯一标识符。" + }, + "id_base": { + "type": "string", + "description": "小工具的类型。对应于 widget-types 端点的 ID。" + }, + "sidebar": { + "type": "string", + "description": "小工具所属的侧边栏。" + }, + "instance": { + "type": "string", + "description": "小工具的实例设置(如果支持)。" + }, + "form_data": { + "type": "string", + "description": "来自小工具管理表单的 URL 编码表单数据。用于更新不支持实例的小工具(指写)。" + } + }, + "required": ["sidebar"] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415617-run", + "security": [] + } + }, + "/wp/v2/widgets/{id}": { + "get": { + "summary": "/wp/v2/widgets/{id}", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415618-run", + "security": [] + }, + "post": { + "summary": "/wp/v2/widgets/{id}", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "小工具的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "id_base": { + "type": "string", + "description": "小工具的类型。对应于 widget-types 端点的 ID。" + }, + "sidebar": { + "type": "string", + "description": "小工具所属的侧边栏。" + }, + "instance": { + "type": "string", + "description": "小工具的实例设置(如果支持)。" + }, + "form_data": { + "type": "string", + "description": "来自小工具管理表单的 URL 编码表单数据。用于更新不支持实例的小工具(指写)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415619-run", + "security": [] + }, + "put": { + "summary": "/wp/v2/widgets/{id}", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "小工具的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "id_base": { + "type": "string", + "description": "小工具的类型。对应于 widget-types 端点的 ID。" + }, + "sidebar": { + "type": "string", + "description": "小工具所属的侧边栏。" + }, + "instance": { + "type": "string", + "description": "小工具的实例设置(如果支持)。" + }, + "form_data": { + "type": "string", + "description": "来自小工具管理表单的 URL 编码表单数据。用于更新不支持实例的小工具(指写)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415620-run", + "security": [] + }, + "patch": { + "summary": "/wp/v2/widgets/{id}", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "小工具的唯一标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "id_base": { + "type": "string", + "description": "小工具的类型。对应于 widget-types 端点的 ID。" + }, + "sidebar": { + "type": "string", + "description": "小工具所属的侧边栏。" + }, + "instance": { + "type": "string", + "description": "小工具的实例设置(如果支持)。" + }, + "form_data": { + "type": "string", + "description": "来自小工具管理表单的 URL 编码表单数据。用于更新不支持实例的小工具(指写)。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415621-run", + "security": [] + }, + "delete": { + "summary": "/wp/v2/widgets/{id}", + "x-apifox-folder": "小工具", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["小工具"], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "required": true, + "example": "", + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "force": { + "type": "string", + "description": "强行移除小工具,货将其移动到未启用的小工具侧边栏。" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/widget" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415622-run", + "security": [] + } + }, + "/wp/v2/block-directory/search": { + "get": { + "summary": "/wp/v2/block-directory/search", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "term", + "in": "query", + "description": "将结果集限制为匹配搜索词的区块。", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/block-directory-item" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415623-run", + "security": [] + } + }, + "/wp/v2/pattern-directory/patterns": { + "get": { + "summary": "/wp/v2/pattern-directory/patterns", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "page", + "in": "query", + "description": "集合的当前页。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "per_page", + "in": "query", + "description": "结果集包含的最大项目数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "search", + "in": "query", + "description": "将结果限制为匹配字符串的。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "category", + "in": "query", + "description": "将结果限制为与分类ID匹配的结果。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "keyword", + "in": "query", + "description": "将结果限制为与关键字ID匹配的结果。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "slug", + "in": "query", + "description": "将结果限制为与样板(别名)匹配的结果。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "offset", + "in": "query", + "description": "将结果集移位特定数量。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "order", + "in": "query", + "description": "设置排序字段升序或降序。", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "orderby", + "in": "query", + "description": "按文章属性对集合进行排序。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pattern-directory-item" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415624-run", + "security": [] + } + }, + "/wp/v2/block-patterns/patterns": { + "get": { + "summary": "/wp/v2/block-patterns/patterns", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/block-pattern" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415625-run", + "security": [] + } + }, + "/wp/v2/block-patterns/categories": { + "get": { + "summary": "/wp/v2/block-patterns/categories", + "x-apifox-folder": "块", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/block-pattern-category" + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415626-run", + "security": [] + } + }, + "/wp/v2/menu-locations": { + "get": { + "summary": "/wp/v2/menu-locations", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/menu-location" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415627-run", + "security": [] + } + }, + "/wp/v2/menu-locations/{location}": { + "get": { + "summary": "/wp/v2/menu-locations/{location}", + "x-apifox-folder": "菜单", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["菜单"], + "parameters": [ + { + "name": "location", + "in": "path", + "description": "菜单位置的字母数字标识符。", + "required": true, + "example": "", + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "请求提出的范围,用于决定回应包含的字段。", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/menu-location" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415628-run", + "security": [] + } + }, + "/wp-site-health/v1": { + "get": { + "summary": "/wp-site-health/v1", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [ + { + "name": "namespace", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415629-run", + "security": [] + } + }, + "/wp-site-health/v1/tests/background-updates": { + "get": { + "summary": "/wp-site-health/v1/tests/background-updates", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp-site-health-test" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415630-run", + "security": [] + } + }, + "/wp-site-health/v1/tests/loopback-requests": { + "get": { + "summary": "/wp-site-health/v1/tests/loopback-requests", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp-site-health-test" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415631-run", + "security": [] + } + }, + "/wp-site-health/v1/tests/https-status": { + "get": { + "summary": "/wp-site-health/v1/tests/https-status", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp-site-health-test" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415632-run", + "security": [] + } + }, + "/wp-site-health/v1/tests/dotorg-communication": { + "get": { + "summary": "/wp-site-health/v1/tests/dotorg-communication", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp-site-health-test" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415633-run", + "security": [] + } + }, + "/wp-site-health/v1/tests/authorization-header": { + "get": { + "summary": "/wp-site-health/v1/tests/authorization-header", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/wp-site-health-test" } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415634-run", + "security": [] + } + }, + "/wp-site-health/v1/directory-sizes": { + "get": { + "summary": "/wp-site-health/v1/directory-sizes", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415635-run", + "security": [] + } + }, + "/wp-site-health/v1/tests/page-cache": { + "get": { + "summary": "/wp-site-health/v1/tests/page-cache", + "x-apifox-folder": "站点健康", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["站点健康"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415636-run", + "security": [] + } + }, + "/wp-block-editor/v1": { + "get": { + "summary": "/wp-block-editor/v1", + "x-apifox-folder": "块编辑器", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块编辑器"], + "parameters": [ + { + "name": "namespace", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "context", + "in": "query", + "description": "", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415637-run", + "security": [] + } + }, + "/wp-block-editor/v1/url-details": { + "get": { + "summary": "/wp-block-editor/v1/url-details", + "x-apifox-folder": "块编辑器", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块编辑器"], + "parameters": [ + { + "name": "url", + "in": "query", + "description": "要处理的URL。", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415638-run", + "security": [] + } + }, + "/wp-block-editor/v1/export": { + "get": { + "summary": "/wp-block-editor/v1/export", + "x-apifox-folder": "块编辑器", + "x-apifox-status": "released", + "deprecated": false, + "description": "", + "tags": ["块编辑器"], + "parameters": [], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + } + } + } + }, + "x-run-in-apifox": "https://apifox.com/web/project/4103355/apis/api-152415639-run", + "security": [] + } + } + }, + "components": { + "schemas": { + "wp-site-health-test": { + "title": "wp-site-health-test", + "type": "object", + "properties": { + "test": { + "type": "string", + "description": "正在运行的测试的名称。", + "readonly": true + }, + "label": { + "type": "string", + "description": "描述测试的标签。", + "readonly": true + }, + "status": { + "type": "string", + "description": "测试的状态。", + "enum": ["good", "recommended", "critical"], + "readonly": true + }, + "badge": { + "type": "object", + "description": "此测试所在的分类。", + "properties": { + "label": { "type": "string", "readonly": true }, + "color": { + "type": "string", + "enum": ["blue", "orange", "red", "green", "purple", "gray"], + "readonly": true + } + }, + "readonly": true, + "x-apifox-orders": ["label", "color"], + "x-apifox-ignore-properties": [] + }, + "description": { + "type": "string", + "description": "更具描述性的测试目的说明,及测试对用户很重要的原因。", + "readonly": true + }, + "actions": { + "type": "string", + "description": "HTML包含了将用户引导至可以解决问题地方的操作。", + "readonly": true + } + }, + "x-apifox-orders": [ + "test", + "label", + "status", + "badge", + "description", + "actions" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "menu-location": { + "title": "menu-location", + "type": "object", + "properties": { + "name": { + "description": "菜单位置的名称。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "description": { + "description": "菜单位置的描述。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "menu": { + "description": "分配菜单的ID。", + "type": "integer", + "context": ["embed", "view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["name", "description", "menu"], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "block-pattern-category": { + "title": "block-pattern-category", + "type": "object", + "properties": { + "name": { + "description": "分类名称。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "label": { + "description": "采用人类可读格式显示的分类标签。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "description": { + "description": "采用人类可读的格式的分类描述。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + } + }, + "x-apifox-orders": ["name", "label", "description"], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "block-pattern": { + "title": "block-pattern", + "type": "object", + "properties": { + "name": { + "description": "区块样板名称。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "区块样板标题,人类可读的格式。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "content": { + "description": "区块样板的内容。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "description": { + "description": "区块样板详细描述。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "viewport_width": { + "description": "为区块插入器预览准备的区块样板视图宽度。", + "type": "number", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "inserter": { + "description": "决定该样板在插入器中是否可见。", + "type": "boolean", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "categories": { + "description": "区块样板的分类别名。", + "type": "array", + "readonly": true, + "context": ["view", "edit", "embed"], + "items": { "type": "string" } + }, + "keywords": { + "description": "区块样板关键字。", + "type": "array", + "readonly": true, + "context": ["view", "edit", "embed"], + "items": { "type": "string" } + }, + "block_types": { + "description": "区块样板搭配使用的区块类型。", + "type": "array", + "readonly": true, + "context": ["view", "edit", "embed"], + "items": { "type": "string" } + }, + "post_types": { + "description": "该样板被限制于与此组文章类型一起使用。", + "type": "array", + "readonly": true, + "context": ["view", "edit", "embed"], + "items": { "type": "string" } + }, + "template_types": { + "description": "该样板适合的模板类型数组。", + "type": "array", + "readonly": true, + "context": ["view", "edit", "embed"], + "items": { "type": "string" } + } + }, + "x-apifox-orders": [ + "name", + "title", + "content", + "description", + "viewport_width", + "inserter", + "categories", + "keywords", + "block_types", + "post_types", + "template_types" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "pattern-directory-item": { + "title": "pattern-directory-item", + "type": "object", + "properties": { + "id": { + "description": "区块样板的 ID。", + "type": "integer", + "minimum": 1, + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "区块样板标题,人类可读的格式。", + "type": "string", + "minLength": 1, + "context": ["view", "edit", "embed"] + }, + "content": { + "description": "区块样板的内容。", + "type": "string", + "minLength": 1, + "context": ["view", "edit", "embed"] + }, + "categories": { + "description": "区块样板的分类别名。", + "type": "array", + "uniqueItems": true, + "items": { "type": "string" }, + "context": ["view", "edit", "embed"] + }, + "keywords": { + "description": "区块样板关键字。", + "type": "array", + "uniqueItems": true, + "items": { "type": "string" }, + "context": ["view", "edit", "embed"] + }, + "description": { + "description": "区块样板的描述;", + "type": "string", + "minLength": 1, + "context": ["view", "edit", "embed"] + }, + "viewport_width": { + "description": "预览区块样板时视口的首选宽度(以像素为单位)。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "block_types": { + "description": "可使用此样板的区块类型。", + "type": "array", + "uniqueItems": true, + "items": { "type": "string" }, + "context": ["view", "embed"] + } + }, + "x-apifox-orders": [ + "id", + "title", + "content", + "categories", + "keywords", + "description", + "viewport_width", + "block_types" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "block-directory-item": { + "title": "block-directory-item", + "type": "object", + "properties": { + "name": { + "description": "以命名空间/区块名称的格式来命名区块。", + "type": "string", + "context": ["view"] + }, + "title": { + "description": "以人类可读的格式撰写区块标题。", + "type": "string", + "context": ["view"] + }, + "description": { + "description": "以人类可读的格式撰写该区块的简短描述。", + "type": "string", + "context": ["view"] + }, + "id": { + "description": "区块别名", + "type": "string", + "context": ["view"] + }, + "rating": { + "description": "区块的星级等级。", + "type": "number", + "context": ["view"] + }, + "rating_count": { + "description": "评分数。", + "type": "integer", + "context": ["view"] + }, + "active_installs": { + "description": "启用此区块的站点数量。", + "type": "integer", + "context": ["view"] + }, + "author_block_rating": { + "description": "同一作者发布的区块的平均评级。", + "type": "number", + "context": ["view"] + }, + "author_block_count": { + "description": "同一作者发布的区块数。", + "type": "integer", + "context": ["view"] + }, + "author": { + "description": "区块作者的WordPress.org用户名。", + "type": "string", + "context": ["view"] + }, + "icon": { + "description": "区块图标", + "type": "string", + "format": "uri", + "context": ["view"] + }, + "last_updated": { + "description": "区块上次更新的日期。", + "type": "string", + "format": "date-time", + "context": ["view"] + }, + "humanized_updated": { + "description": "以模糊的人类可读格式撰写该区块最后一次更新的日期。", + "type": "string", + "context": ["view"] + } + }, + "x-apifox-orders": [ + "name", + "title", + "description", + "id", + "rating", + "rating_count", + "active_installs", + "author_block_rating", + "author_block_count", + "author", + "icon", + "last_updated", + "humanized_updated" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "widget": { + "title": "widget", + "type": "object", + "properties": { + "id": { + "description": "小工具的唯一标识符。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "id_base": { + "description": "小工具的类型。对应于 widget-types 端点的 ID。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "sidebar": { + "description": "小工具所属的侧边栏。", + "type": "string", + "default": "wp_inactive_widgets", + "context": ["view", "edit", "embed"] + }, + "rendered": { + "description": "小工具的HTML表示形式。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "rendered_form": { + "description": "小工具管理表单的HTML表示形式。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "instance": { + "description": "小工具的实例设置(如果支持)。", + "type": "object", + "context": ["edit"], + "default": null, + "properties": { + "encoded": { + "description": "实例设置的 Base64 编码表示。", + "type": "string", + "context": ["edit"] + }, + "hash": { + "description": "实例设置的加密哈希值。", + "type": "string", + "context": ["edit"] + }, + "raw": { + "description": "未编码的实例设置(如果支持)。", + "type": "object", + "context": ["edit"], + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": ["encoded", "hash", "raw"], + "x-apifox-ignore-properties": [] + }, + "form_data": { + "description": "来自小工具管理表单的 URL 编码表单数据。用于更新不支持实例的小工具(指写)。", + "type": "string", + "context": [] + } + }, + "x-apifox-orders": [ + "id", + "id_base", + "sidebar", + "rendered", + "rendered_form", + "instance", + "form_data" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "widget-type": { + "title": "widget-type", + "type": "object", + "properties": { + "id": { + "description": "标识小工具类型的唯一别名。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "name": { + "description": "辨别小工具类型的可读名称。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "description": { + "description": "小工具的描述。", + "type": "string", + "default": "", + "context": ["view", "edit", "embed"] + }, + "is_multi": { + "description": "小工具是否支持多个实例", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "classname": { + "description": "类名", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "id", + "name", + "description", + "is_multi", + "classname" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "sidebar": { + "title": "sidebar", + "type": "object", + "properties": { + "id": { + "description": "边栏的ID。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "name": { + "description": "标识侧栏的唯一名称。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "description": { + "description": "侧边栏的描述。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "class": { + "description": "额外的CSS类,可分配给小工具界面的侧栏。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "before_widget": { + "description": "分配给此侧栏时附加到每个小工具HTML输出的HTML内容。默认值是打开列表项元素。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "after_widget": { + "description": "分配给此侧栏时附加到每个小工具HTML输出的HTML内容。默认值是关闭列表项元素。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "before_title": { + "description": "显示时附加到边栏标题前的HTML内容。默认是打开h2元素。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "after_title": { + "description": "显示时附加到边栏标题后的HTML内容。默认是关闭h2元素。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "status": { + "description": "侧边栏的状态。", + "type": "string", + "enum": ["active", "inactive"], + "context": ["embed", "view", "edit"], + "readonly": true + }, + "widgets": { + "description": "嵌套小工具。", + "type": "array", + "items": { "type": ["object", "string"] }, + "default": [], + "context": ["embed", "view", "edit"] + } + }, + "x-apifox-orders": [ + "id", + "name", + "description", + "class", + "before_widget", + "after_widget", + "before_title", + "after_title", + "status", + "widgets" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "plugin": { + "title": "plugin", + "type": "object", + "properties": { + "plugin": { + "description": "插件文件。", + "type": "string", + "pattern": "[^.\\/]+(?:\\/[^.\\/]+)?", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "status": { + "description": "插件启用状态。", + "type": "string", + "enum": ["inactive", "active"], + "context": ["view", "edit", "embed"] + }, + "name": { + "description": "插件名称。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "plugin_uri": { + "description": "插件的网站地址。", + "type": "string", + "format": "uri", + "readonly": true, + "context": ["view", "edit"] + }, + "author": { + "description": "插件作者。", + "type": "object", + "readonly": true, + "context": ["view", "edit"], + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "author_uri": { + "description": "插件作者的网站地址。", + "type": "string", + "format": "uri", + "readonly": true, + "context": ["view", "edit"] + }, + "description": { + "description": "插件说明。", + "type": "object", + "readonly": true, + "context": ["view", "edit"], + "properties": { + "raw": { "description": "原始插件说明。", "type": "string" }, + "rendered": { + "description": "插件说明已格式化以供显示。", + "type": "string" + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "version": { + "description": "插件版本号。", + "type": "string", + "readonly": true, + "context": ["view", "edit"] + }, + "network_only": { + "description": "插件是否只能在站点网络中启用。", + "type": "boolean", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "requires_wp": { + "description": "最低要求的WordPress版本。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "requires_php": { + "description": "最低要求的PHP版本。", + "type": "string", + "readonly": true, + "context": ["view", "edit", "embed"] + }, + "textdomain": { + "description": "插件的文本域。", + "type": "string", + "readonly": true, + "context": ["view", "edit"] + } + }, + "x-apifox-orders": [ + "plugin", + "status", + "name", + "plugin_uri", + "author", + "author_uri", + "description", + "version", + "network_only", + "requires_wp", + "requires_php", + "textdomain" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "theme": { + "title": "theme", + "type": "object", + "properties": { + "stylesheet": { + "description": "主题的样式表。这是主题的唯一标识。", + "type": "string", + "readonly": true + }, + "template": { + "description": "主题的模板。如果这是一个子主题,则其指代父主题;否则,其与此主题的样式表相同。", + "type": "string", + "readonly": true + }, + "author": { + "description": "主题作者。", + "type": "object", + "readonly": true, + "properties": { + "raw": { + "description": "主题作者名称,在主题标头中找到。", + "type": "string" + }, + "rendered": { + "description": "主题作者的HTML信息,经转换后用于显示。", + "type": "string" + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "author_uri": { + "description": "主题作者的网站。", + "type": "object", + "readonly": true, + "properties": { + "raw": { + "description": "主题作者的网站,在主题标头中找到。", + "type": "string", + "format": "uri" + }, + "rendered": { + "description": "主题作者的网站,经转换后用于显示。", + "type": "string", + "format": "uri" + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "description": { + "description": "主题的描述。", + "type": "object", + "readonly": true, + "properties": { + "raw": { + "description": "主题描述,在主题标头中找到。", + "type": "string" + }, + "rendered": { + "description": "主题描述,经转换后用于显示。", + "type": "string" + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "name": { + "description": "主题名称。", + "type": "object", + "readonly": true, + "properties": { + "raw": { + "description": "主题名称,在主题标头中找到。", + "type": "string" + }, + "rendered": { + "description": "主题名称,经转换后用于显示。", + "type": "string" + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "requires_php": { + "description": "主题工作所需的最低PHP版本。", + "type": "string", + "readonly": true + }, + "requires_wp": { + "description": "主题工作所需的最低WordPress版本。", + "type": "string", + "readonly": true + }, + "screenshot": { + "description": "主题的截屏URL。", + "type": "string", + "format": "uri", + "readonly": true + }, + "tags": { + "description": "描述主题样式和功能的标签。", + "type": "object", + "readonly": true, + "properties": { + "raw": { + "description": "主题标签,在主题标头中找到。", + "type": "array", + "items": { "type": "string" } + }, + "rendered": { + "description": "主题标签,经转换后用于显示。", + "type": "string" + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "textdomain": { + "description": "主题的文本域。", + "type": "string", + "readonly": true + }, + "theme_supports": { + "description": "此主题支持的功能。", + "type": "object", + "readonly": true, + "properties": { + "align-wide": { + "description": "Whether theme opts in to wide alignment CSS class.", + "type": "boolean", + "default": false + }, + "automatic-feed-links": { + "description": "Whether posts and comments RSS feed links are added to head.", + "type": "boolean", + "default": false + }, + "block-templates": { + "description": "Whether a theme uses block-based templates.", + "type": "boolean", + "default": false + }, + "block-template-parts": { + "description": "Whether a theme uses block-based template parts.", + "type": "boolean", + "default": false + }, + "custom-background": { + "description": "Custom background if defined by the theme.", + "type": ["boolean", "object"], + "default": false, + "properties": { + "default-image": { "type": "string", "format": "uri" }, + "default-preset": { + "type": "string", + "enum": ["default", "fill", "fit", "repeat", "custom"] + }, + "default-position-x": { + "type": "string", + "enum": ["left", "center", "right"] + }, + "default-position-y": { + "type": "string", + "enum": ["left", "center", "right"] + }, + "default-size": { + "type": "string", + "enum": ["auto", "contain", "cover"] + }, + "default-repeat": { + "type": "string", + "enum": ["repeat-x", "repeat-y", "repeat", "no-repeat"] + }, + "default-attachment": { + "type": "string", + "enum": ["scroll", "fixed"] + }, + "default-color": { "type": "string" } + }, + "additionalProperties": false + }, + "custom-header": { + "description": "Custom header if defined by the theme.", + "type": ["boolean", "object"], + "default": false, + "properties": { + "default-image": { "type": "string", "format": "uri" }, + "random-default": { "type": "boolean" }, + "width": { "type": "integer" }, + "height": { "type": "integer" }, + "flex-height": { "type": "boolean" }, + "flex-width": { "type": "boolean" }, + "default-text-color": { "type": "string" }, + "header-text": { "type": "boolean" }, + "uploads": { "type": "boolean" }, + "video": { "type": "boolean" } + }, + "additionalProperties": false + }, + "custom-logo": { + "description": "Custom logo if defined by the theme.", + "type": ["boolean", "object"], + "default": false, + "properties": { + "width": { "type": "integer" }, + "height": { "type": "integer" }, + "flex-width": { "type": "boolean" }, + "flex-height": { "type": "boolean" }, + "header-text": { + "type": "array", + "items": { "type": "string" } + }, + "unlink-homepage-logo": { "type": "boolean" } + }, + "additionalProperties": false + }, + "customize-selective-refresh-widgets": { + "description": "Whether the theme enables Selective Refresh for Widgets being managed with the Customizer.", + "type": "boolean", + "default": false + }, + "dark-editor-style": { + "description": "Whether theme opts in to the dark editor style UI.", + "type": "boolean", + "default": false + }, + "disable-custom-colors": { + "description": "Whether the theme disables custom colors.", + "type": "boolean", + "default": false + }, + "disable-custom-font-sizes": { + "description": "Whether the theme disables custom font sizes.", + "type": "boolean", + "default": false + }, + "disable-custom-gradients": { + "description": "Whether the theme disables custom gradients.", + "type": "boolean", + "default": false + }, + "disable-layout-styles": { + "description": "Whether the theme disables generated layout styles.", + "type": "boolean", + "default": false + }, + "editor-color-palette": { + "description": "Custom color palette if defined by the theme.", + "type": ["boolean", "array"], + "default": false, + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "slug": { "type": "string" }, + "color": { "type": "string" } + }, + "additionalProperties": false, + "x-apifox-orders": ["name", "slug", "color"] + } + }, + "editor-font-sizes": { + "description": "Custom font sizes if defined by the theme.", + "type": ["boolean", "array"], + "default": false, + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "size": { "type": "number" }, + "slug": { "type": "string" } + }, + "additionalProperties": false, + "x-apifox-orders": ["name", "size", "slug"] + } + }, + "editor-gradient-presets": { + "description": "Custom gradient presets if defined by the theme.", + "type": ["boolean", "array"], + "default": false, + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "gradient": { "type": "string" }, + "slug": { "type": "string" } + }, + "additionalProperties": false, + "x-apifox-orders": ["name", "gradient", "slug"] + } + }, + "editor-styles": { + "description": "Whether theme opts in to the editor styles CSS wrapper.", + "type": "boolean", + "default": false + }, + "html5": { + "description": "Allows use of HTML5 markup for search forms, comment forms, comment lists, gallery, and caption.", + "type": ["boolean", "array"], + "default": false, + "items": { + "type": "string", + "enum": [ + "search-form", + "comment-form", + "comment-list", + "gallery", + "caption", + "script", + "style" + ] + } + }, + "formats": { + "description": "Post formats supported.", + "type": "array", + "default": ["standard"], + "items": { + "type": "string", + "enum": { + "standard": "standard", + "aside": "aside", + "chat": "chat", + "gallery": "gallery", + "link": "link", + "image": "image", + "quote": "quote", + "status": "status", + "video": "video", + "audio": "audio" + } + } + }, + "post-thumbnails": { + "description": "The post types that support thumbnails or true if all post types are supported.", + "type": ["boolean", "array"], + "default": false, + "items": { "type": "string" } + }, + "responsive-embeds": { + "description": "Whether the theme supports responsive embedded content.", + "type": "boolean", + "default": false + }, + "title-tag": { + "description": "Whether the theme can manage the document title tag.", + "type": "boolean", + "default": false + }, + "wp-block-styles": { + "description": "Whether theme opts in to default WordPress block styles for viewing.", + "type": "boolean", + "default": false + } + }, + "x-apifox-orders": [ + "align-wide", + "automatic-feed-links", + "block-templates", + "block-template-parts", + "custom-background", + "custom-header", + "custom-logo", + "customize-selective-refresh-widgets", + "dark-editor-style", + "disable-custom-colors", + "disable-custom-font-sizes", + "disable-custom-gradients", + "disable-layout-styles", + "editor-color-palette", + "editor-font-sizes", + "editor-gradient-presets", + "editor-styles", + "html5", + "formats", + "post-thumbnails", + "responsive-embeds", + "title-tag", + "wp-block-styles" + ], + "x-apifox-ignore-properties": [] + }, + "theme_uri": { + "description": "主题页面URI链接。", + "type": "object", + "readonly": true, + "properties": { + "raw": { + "description": "主题网页的URI,在主题标头中找到。", + "type": "string", + "format": "uri" + }, + "rendered": { + "description": "主题网页的URI,经转换后用于显示。", + "type": "string", + "format": "uri" + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "version": { + "description": "主题当前版本。", + "type": "string", + "readonly": true + }, + "status": { + "description": "主题的命名状态。", + "type": "string", + "enum": ["inactive", "active"] + } + }, + "x-apifox-orders": [ + "stylesheet", + "template", + "author", + "author_uri", + "description", + "name", + "requires_php", + "requires_wp", + "screenshot", + "tags", + "textdomain", + "theme_supports", + "theme_uri", + "version", + "status" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "settings": { + "title": "settings", + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "站点标题。", + "default": null + }, + "description": { + "type": "string", + "description": "站点副标题。", + "default": null + }, + "url": { + "type": "string", + "description": "站点URL。", + "default": null, + "format": "uri" + }, + "email": { + "type": "string", + "description": "此地址被用作管理用途,如新用户通知。", + "default": null, + "format": "email" + }, + "timezone": { + "type": "string", + "description": "和您在同一个时区的城市。", + "default": null + }, + "date_format": { + "type": "string", + "description": "对所有日期字符串适用的日期格式。", + "default": null + }, + "time_format": { + "type": "string", + "description": "对所有时间字符串适用的时间格式。", + "default": null + }, + "start_of_week": { + "type": "integer", + "description": "一周从周几开始。", + "default": null + }, + "language": { + "type": "string", + "description": "WordPress地区语言代码。", + "default": "en_US" + }, + "use_smilies": { + "type": "boolean", + "description": "将表情符号如:-)和:-P转换为图片显示。", + "default": true + }, + "default_category": { + "type": "integer", + "description": "默认文章分类。", + "default": null + }, + "default_post_format": { + "type": "string", + "description": "默认文章形式。", + "default": null + }, + "posts_per_page": { + "type": "integer", + "description": "最多显示的博客页面数量。", + "default": 10 + }, + "show_on_front": { + "type": "string", + "description": "需要在首页上显示的项目", + "default": null + }, + "page_on_front": { + "type": "integer", + "description": "需要在首页上显示的页面 ID", + "default": null + }, + "page_for_posts": { + "type": "integer", + "description": "需要显示最新文章的页面 ID", + "default": null + }, + "default_ping_status": { + "type": "string", + "description": "允许其他博客发送链接通知(pingback和trackback)到新文章。", + "default": null, + "enum": ["open", "closed"] + }, + "default_comment_status": { + "type": "string", + "description": "允许他人在新文章上发表评论。", + "default": null, + "enum": ["open", "closed"] + }, + "site_logo": { + "type": "integer", + "description": "站点 logo", + "default": null + }, + "site_icon": { + "type": "integer", + "description": "站点图标。", + "default": null + } + }, + "x-apifox-orders": [ + "title", + "description", + "url", + "email", + "timezone", + "date_format", + "time_format", + "start_of_week", + "language", + "use_smilies", + "default_category", + "default_post_format", + "posts_per_page", + "show_on_front", + "page_on_front", + "page_for_posts", + "default_ping_status", + "default_comment_status", + "site_logo", + "site_icon" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_global_styles": { + "title": "wp_global_styles", + "type": "object", + "properties": { + "id": { + "description": "全局样式配置的 ID。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "styles": { + "description": "全局样式。", + "type": ["object"], + "context": ["view", "edit"] + }, + "settings": { + "description": "全局设置。", + "type": ["object"], + "context": ["view", "edit"] + }, + "title": { + "description": "全局样式变体的标题。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "全局样式变体的标题,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + } + } + }, + "x-apifox-orders": ["id", "styles", "settings", "title"], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "block-type": { + "title": "block-type", + "type": "object", + "properties": { + "api_version": { + "description": "区块API的版本。", + "type": "integer", + "default": 1, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "title": { + "description": "区块类型的标题。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "name": { + "description": "区块类型的唯一名称。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "description": { + "description": "区块类型的描述。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "icon": { + "description": "区块类型的图标。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "attributes": { + "description": "区块属性。", + "type": ["object", "null"], + "properties": {}, + "default": null, + "additionalProperties": { "type": "object", "x-apifox-orders": [] }, + "context": ["embed", "view", "edit"], + "readonly": true, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + }, + "provides_context": { + "description": "此类区块所提供的上下文。", + "type": "object", + "properties": {}, + "additionalProperties": { "type": "string" }, + "default": [], + "context": ["embed", "view", "edit"], + "readonly": true, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + }, + "uses_context": { + "description": "此类区块所继承的上下文的值。", + "type": "array", + "default": [], + "items": { "type": "string" }, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "supports": { + "description": "区块支持。", + "type": "object", + "default": [], + "properties": {}, + "context": ["embed", "view", "edit"], + "readonly": true, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + }, + "category": { + "description": "区块分类。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "is_dynamic": { + "description": "区块是动态渲染的?", + "type": "boolean", + "default": false, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "editor_script_handles": { + "description": "编辑器脚本句柄。", + "type": ["array"], + "default": [], + "items": { "type": "string" }, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "script_handles": { + "description": "公开界面和编辑器脚本的句柄。", + "type": ["array"], + "default": [], + "items": { "type": "string" }, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "view_script_handles": { + "description": "公开界面脚本的句柄。", + "type": ["array"], + "default": [], + "items": { "type": "string" }, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "editor_style_handles": { + "description": "编辑器样式句柄。", + "type": ["array"], + "default": [], + "items": { "type": "string" }, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "style_handles": { + "description": "公开界面和编辑器样式的句柄。", + "type": ["array"], + "default": [], + "items": { "type": "string" }, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "styles": { + "description": "区块样式变体。", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "识别样式的唯一名称。", + "type": "string" + }, + "label": { + "description": "人类可读的样式标签。", + "type": "string" + }, + "inline_style": { + "description": "注册样式所需CSS类的内联CSS代码。", + "type": "string" + }, + "style_handle": { + "description": "包含定义区块样式的句柄。", + "type": "string" + } + }, + "x-apifox-orders": [ + "name", + "label", + "inline_style", + "style_handle" + ], + "x-apifox-ignore-properties": [] + }, + "default": [], + "context": ["embed", "view", "edit"], + "readonly": true + }, + "variations": { + "description": "区块变体。", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "唯一且机器可读的名称。", + "type": "string" + }, + "title": { + "description": "易读的变体标题。", + "type": "string" + }, + "description": { + "description": "详细的遍体描述。", + "type": "string" + }, + "category": { + "description": "区块分类。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "icon": { + "description": "区块类型的图标。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "isDefault": { + "description": "指明当前的变体是否为默认变体。", + "type": "boolean", + "default": false + }, + "attributes": { + "description": "属性的初始值。", + "type": "object", + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "innerBlocks": { + "description": "此范例中使用的内部区块列表。", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "内部区块的名称。", + "type": "string" + }, + "attributes": { + "description": "内部区块的属性。", + "type": "object", + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "innerBlocks": { + "description": "内部区块自身的内部区块清单。这是一个递归定义,遵循父innerBlocks的模式描述。", + "type": "array", + "items": { "type": "string" } + } + }, + "x-apifox-orders": ["name", "attributes", "innerBlocks"], + "x-apifox-ignore-properties": [] + } + }, + "example": { + "description": "区块示例。", + "type": ["object", "null"], + "default": null, + "properties": { + "attributes": { + "description": "此范例中使用的属性。", + "type": "object", + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "innerBlocks": { + "description": "此范例中使用的内部区块列表。", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "内部区块的名称。", + "type": "string" + }, + "attributes": { + "description": "内部区块的属性。", + "type": "object", + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "innerBlocks": { + "description": "内部区块自身的内部区块清单。这是一个递归定义,遵循父innerBlocks的模式描述。", + "type": "array", + "items": { "type": "string" } + } + }, + "x-apifox-orders": [ + "name", + "attributes", + "innerBlocks" + ], + "x-apifox-ignore-properties": [] + } + } + }, + "context": ["embed", "view", "edit"], + "readonly": true, + "x-apifox-orders": ["attributes", "innerBlocks"], + "x-apifox-ignore-properties": [] + }, + "scope": { + "description": "遍体适用的范围列表。如未提供,则假定所有范围可用。", + "type": ["array", "null"], + "default": null, + "items": { + "type": "string", + "enum": ["block", "inserter", "transform"] + }, + "readonly": true + }, + "keywords": { + "description": "区块关键字。", + "type": "array", + "items": { "type": "string" }, + "default": [], + "context": ["embed", "view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "name", + "title", + "description", + "category", + "icon", + "isDefault", + "attributes", + "innerBlocks", + "example", + "scope", + "keywords" + ], + "x-apifox-ignore-properties": [] + }, + "readonly": true, + "context": ["embed", "view", "edit"], + "default": null + }, + "textdomain": { + "description": "公共文本域。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "parent": { + "description": "上级区块", + "type": ["array", "null"], + "items": { "type": "string" }, + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "ancestor": { + "description": "上层区块。", + "type": ["array", "null"], + "items": { "type": "string" }, + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "keywords": { + "description": "区块关键字。", + "type": "array", + "items": { "type": "string" }, + "default": [], + "context": ["embed", "view", "edit"], + "readonly": true + }, + "example": { + "description": "区块示例。", + "type": ["object", "null"], + "default": null, + "properties": { + "attributes": { + "description": "此范例中使用的属性。", + "type": "object", + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "innerBlocks": { + "description": "此范例中使用的内部区块列表。", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "内部区块的名称。", + "type": "string" + }, + "attributes": { + "description": "内部区块的属性。", + "type": "object", + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "innerBlocks": { + "description": "内部区块自身的内部区块清单。这是一个递归定义,遵循父innerBlocks的模式描述。", + "type": "array", + "items": { "type": "string" } + } + }, + "x-apifox-orders": ["name", "attributes", "innerBlocks"], + "x-apifox-ignore-properties": [] + } + } + }, + "context": ["embed", "view", "edit"], + "readonly": true, + "x-apifox-orders": ["attributes", "innerBlocks"], + "x-apifox-ignore-properties": [] + }, + "editor_script": { + "description": "编辑器脚本的句柄。已弃用:请使用 `editor_script_handles` 作为代替。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "script": { + "description": "公开界面和编辑器脚本的句柄。已弃用:请使用 `script_handles` 作为代替。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "view_script": { + "description": "公开界面脚本的句柄。已弃用:请使用 `view_script_handles` 作为代替。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "editor_style": { + "description": "编辑器样式的句柄。已弃用:请使用 `editor_style_handles` 作为代替。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + }, + "style": { + "description": "公开界面和编辑器样式的句柄。已弃用:请使用 `style_handles` 作为代替。", + "type": ["string", "null"], + "default": null, + "context": ["embed", "view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "api_version", + "title", + "name", + "description", + "icon", + "attributes", + "provides_context", + "uses_context", + "supports", + "category", + "is_dynamic", + "editor_script_handles", + "script_handles", + "view_script_handles", + "editor_style_handles", + "style_handles", + "styles", + "variations", + "textdomain", + "parent", + "ancestor", + "keywords", + "example", + "editor_script", + "script", + "view_script", + "editor_style", + "style" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "rendered-block": { + "title": "rendered-block", + "type": "object", + "properties": { + "rendered": { + "description": "渲染的区块。", + "type": "string", + "context": ["edit"] + } + }, + "x-apifox-orders": ["rendered"], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "search-result": { + "title": "search-result", + "type": "object", + "properties": { + "id": { + "description": "对象的唯一标识符。", + "type": ["integer", "string"], + "context": ["view", "embed"], + "readonly": true + }, + "title": { + "description": "对象的标题。", + "type": "string", + "context": ["view", "embed"], + "readonly": true + }, + "url": { + "description": "对象的URL。", + "type": "string", + "format": "uri", + "context": ["view", "embed"], + "readonly": true + }, + "type": { + "description": "对象类型。", + "type": "string", + "enum": ["post", "term", "post-format"], + "context": ["view", "embed"], + "readonly": true + }, + "subtype": { + "description": "对象子类型。", + "type": "string", + "enum": ["post", "page", "category", "post_tag"], + "context": ["view", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["id", "title", "url", "type", "subtype"], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "comment": { + "title": "comment", + "type": "object", + "properties": { + "id": { + "description": "评论的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "author": { + "description": "用户对象的ID,如果作者是用户。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "author_email": { + "description": "评论者的电子邮箱地址。", + "type": "string", + "format": "email", + "context": ["edit"] + }, + "author_ip": { + "description": "评论者的IP地址。", + "type": "string", + "format": "ip", + "context": ["edit"] + }, + "author_name": { + "description": "评论者的显示名。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "author_url": { + "description": "评论者的网址。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"] + }, + "author_user_agent": { + "description": "评论者的 User agent。", + "type": "string", + "context": ["edit"] + }, + "content": { + "description": "评论的内容。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "评论的内容,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "评论的 HTML 内容,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "date": { + "description": "评论发表的日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "评论发表的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "link": { + "description": "评论的 网址。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "parent": { + "description": "评论的父级ID。", + "type": "integer", + "context": ["view", "edit", "embed"], + "default": 0 + }, + "post": { + "description": "关联文章对象的ID。", + "type": "integer", + "context": ["view", "edit"], + "default": 0 + }, + "status": { + "description": "评论的状态。", + "type": "string", + "context": ["view", "edit"] + }, + "type": { + "description": "评论的类型。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "author_avatar_urls": { + "description": "评论者的头像网址。", + "type": "object", + "context": ["view", "edit", "embed"], + "readonly": true, + "properties": { + "24": { + "description": "头像URL,图片尺寸24像素。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"] + }, + "48": { + "description": "头像URL,图片尺寸48像素。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"] + }, + "96": { + "description": "头像URL,图片尺寸96像素。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"] + } + }, + "x-apifox-orders": ["24", "48", "96"], + "x-apifox-ignore-properties": [] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "author", + "author_email", + "author_ip", + "author_name", + "author_url", + "author_user_agent", + "content", + "date", + "date_gmt", + "link", + "parent", + "post", + "status", + "type", + "author_avatar_urls", + "meta" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "application-password": { + "title": "application-password", + "type": "object", + "properties": { + "uuid": { + "description": "该应用程序密码的唯一标识符。", + "type": "string", + "format": "uuid", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "app_id": { + "description": "由应用程序提供的用于唯一识别的 UUID。建议使用含有 URL 或 DNS 命名空间的 UUID v5。", + "type": "string", + "format": "uuid", + "context": ["view", "edit", "embed"] + }, + "name": { + "description": "应用程序密码名称。", + "type": "string", + "context": ["view", "edit", "embed"], + "minLength": 1, + "pattern": ".*\\S.*" + }, + "password": { + "description": "生成的密码。仅在加入应用程序后可用。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "created": { + "description": "创建该应用程序密码的GMT日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "last_used": { + "description": "上次使用该应用程序密码的GMT日期。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "last_ip": { + "description": "上次使用该应用程序密码的IP地址。", + "type": ["string", "null"], + "format": "ip", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "uuid", + "app_id", + "name", + "password", + "created", + "last_used", + "last_ip" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "user": { + "title": "user", + "type": "object", + "properties": { + "id": { + "description": "用户的唯一标识符。", + "type": "integer", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "username": { + "description": "用户的登录名。", + "type": "string", + "context": ["edit"] + }, + "name": { + "description": "用户的显示名。", + "type": "string", + "context": ["embed", "view", "edit"] + }, + "first_name": { + "description": "用户的名字。", + "type": "string", + "context": ["edit"] + }, + "last_name": { + "description": "用户的姓氏。", + "type": "string", + "context": ["edit"] + }, + "email": { + "description": "用户的电子邮箱地址。", + "type": "string", + "format": "email", + "context": ["edit"] + }, + "url": { + "description": "用户的URL。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"] + }, + "description": { + "description": "用户的描述。", + "type": "string", + "context": ["embed", "view", "edit"] + }, + "link": { + "description": "用户的作者URL。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "locale": { + "description": "用户的地区语言。", + "type": "string", + "enum": ["", "en_US", "zh_CN"], + "context": ["edit"] + }, + "nickname": { + "description": "用户的昵称。", + "type": "string", + "context": ["edit"] + }, + "slug": { + "description": "用户的英数字标识符。", + "type": "string", + "context": ["embed", "view", "edit"] + }, + "registered_date": { + "description": "用户的注册日期。", + "type": "string", + "format": "date-time", + "context": ["edit"], + "readonly": true + }, + "roles": { + "description": "用户被赋予的角色。", + "type": "array", + "items": { "type": "string" }, + "context": ["edit"] + }, + "password": { + "description": "用户的密码(从不被包含)。", + "type": "string", + "context": [] + }, + "capabilities": { + "description": "用户所有的权限。", + "type": "object", + "context": ["edit"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "extra_capabilities": { + "description": "用户包含的额外权限。", + "type": "object", + "context": ["edit"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "avatar_urls": { + "description": "用户的头像URL。", + "type": "object", + "context": ["embed", "view", "edit"], + "readonly": true, + "properties": { + "24": { + "description": "头像URL,图片尺寸24像素。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"] + }, + "48": { + "description": "头像URL,图片尺寸48像素。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"] + }, + "96": { + "description": "头像URL,图片尺寸96像素。", + "type": "string", + "format": "uri", + "context": ["embed", "view", "edit"] + } + }, + "x-apifox-orders": ["24", "48", "96"], + "x-apifox-ignore-properties": [] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "persisted_preferences": { + "type": "object", + "description": "", + "default": [], + "context": ["edit"], + "properties": { + "_modified": { + "description": "日期和时间的偏好设置已更新。", + "type": "string", + "format": "date-time", + "readonly": false + } + }, + "additionalProperties": true, + "x-apifox-orders": ["_modified"], + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": ["persisted_preferences"], + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "username", + "name", + "first_name", + "last_name", + "email", + "url", + "description", + "link", + "locale", + "nickname", + "slug", + "registered_date", + "roles", + "password", + "capabilities", + "extra_capabilities", + "avatar_urls", + "meta" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "nav_menu": { + "title": "nav_menu", + "type": "object", + "properties": { + "id": { + "description": "项目的唯一标识符。", + "type": "integer", + "context": ["view", "embed", "edit"], + "readonly": true + }, + "description": { + "description": "项目的HTML描述。", + "type": "string", + "context": ["view", "edit"] + }, + "name": { + "description": "项目的HTML标题。", + "type": "string", + "context": ["view", "embed", "edit"] + }, + "slug": { + "description": "项目类型而言的英数字标识符。", + "type": "string", + "context": ["view", "embed", "edit"] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + }, + "locations": { + "description": "分配给菜单的位置。", + "type": "array", + "items": { "type": "string" }, + "context": ["view", "edit"] + }, + "auto_add": { + "description": "是否自动添加顶级页面到此菜单。", + "context": ["view", "edit"], + "type": "boolean" + } + }, + "x-apifox-orders": [ + "id", + "description", + "name", + "slug", + "meta", + "locations", + "auto_add" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "tag": { + "title": "tag", + "type": "object", + "properties": { + "id": { + "description": "项目的唯一标识符。", + "type": "integer", + "context": ["view", "embed", "edit"], + "readonly": true + }, + "count": { + "description": "项目中已发布文章的数量。", + "type": "integer", + "context": ["view", "edit"], + "readonly": true + }, + "description": { + "description": "项目的HTML描述。", + "type": "string", + "context": ["view", "edit"] + }, + "link": { + "description": "项目的URL。", + "type": "string", + "format": "uri", + "context": ["view", "embed", "edit"], + "readonly": true + }, + "name": { + "description": "项目的HTML标题。", + "type": "string", + "context": ["view", "embed", "edit"] + }, + "slug": { + "description": "项目类型而言的英数字标识符。", + "type": "string", + "context": ["view", "embed", "edit"] + }, + "taxonomy": { + "description": "项目的类型属性。", + "type": "string", + "enum": ["post_tag"], + "context": ["view", "embed", "edit"], + "readonly": true + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "count", + "description", + "link", + "name", + "slug", + "taxonomy", + "meta" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "category": { + "title": "category", + "type": "object", + "properties": { + "id": { + "description": "项目的唯一标识符。", + "type": "integer", + "context": ["view", "embed", "edit"], + "readonly": true + }, + "count": { + "description": "项目中已发布文章的数量。", + "type": "integer", + "context": ["view", "edit"], + "readonly": true + }, + "description": { + "description": "项目的HTML描述。", + "type": "string", + "context": ["view", "edit"] + }, + "link": { + "description": "项目的URL。", + "type": "string", + "format": "uri", + "context": ["view", "embed", "edit"], + "readonly": true + }, + "name": { + "description": "项目的HTML标题。", + "type": "string", + "context": ["view", "embed", "edit"] + }, + "slug": { + "description": "项目类型而言的英数字标识符。", + "type": "string", + "context": ["view", "embed", "edit"] + }, + "taxonomy": { + "description": "项目的类型属性。", + "type": "string", + "enum": ["category"], + "context": ["view", "embed", "edit"], + "readonly": true + }, + "parent": { + "description": "父项目ID。", + "type": "integer", + "context": ["view", "edit"] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "id", + "count", + "description", + "link", + "name", + "slug", + "taxonomy", + "parent", + "meta" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "taxonomy": { + "title": "taxonomy", + "type": "object", + "properties": { + "capabilities": { + "description": "分类法使用的所有权限。", + "type": "object", + "context": ["edit"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "description": { + "description": "分类法的人类可读描述。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "hierarchical": { + "description": "分类法是否包含子分类法。", + "type": "boolean", + "context": ["view", "edit"], + "readonly": true + }, + "labels": { + "description": "分类法在不同上下文中的人类可读标签。", + "type": "object", + "context": ["edit"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "name": { + "description": "分类法的标题。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "slug": { + "description": "分类法的英数字标识符。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "show_cloud": { + "description": "项目云是否应该被显示。", + "type": "boolean", + "context": ["edit"], + "readonly": true + }, + "types": { + "description": "关联到此分类法的类型。", + "type": "array", + "items": { "type": "string" }, + "context": ["view", "edit"], + "readonly": true + }, + "rest_base": { + "description": "分类法的REST base路由。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "rest_namespace": { + "description": "分类法的 REST 命名空间路由。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "visibility": { + "description": "分类法的可见度设置。", + "type": "object", + "context": ["edit"], + "readonly": true, + "properties": { + "public": { + "description": "此分类法是否可供公开使用,或是通过管理界面,或是由前端用户。", + "type": "boolean" + }, + "publicly_queryable": { + "description": "此分类法是否可公开查询。", + "type": "boolean" + }, + "show_ui": { + "description": "是否生成管理此分类法的缺省UI。", + "type": "boolean" + }, + "show_admin_column": { + "description": "是否允许在关联的post-types数据表上自动创建分类法列。", + "type": "boolean" + }, + "show_in_nav_menus": { + "description": "是否让分类法在导航菜单中可供选择。", + "type": "boolean" + }, + "show_in_quick_edit": { + "description": "是否在快速/批量编辑面板显示分类法。", + "type": "boolean" + } + }, + "x-apifox-orders": [ + "public", + "publicly_queryable", + "show_ui", + "show_admin_column", + "show_in_nav_menus", + "show_in_quick_edit" + ], + "x-apifox-ignore-properties": [] + } + }, + "x-apifox-orders": [ + "capabilities", + "description", + "hierarchical", + "labels", + "name", + "slug", + "show_cloud", + "types", + "rest_base", + "rest_namespace", + "visibility" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "status": { + "title": "status", + "type": "object", + "properties": { + "name": { + "description": "状态标题。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "private": { + "description": "有此状态的文章是否应为私人的。", + "type": "boolean", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "有此状态的文章是否应为受保护的。", + "type": "boolean", + "context": ["edit"], + "readonly": true + }, + "public": { + "description": "此状态的文章是否应于前端显示。", + "type": "boolean", + "context": ["view", "edit"], + "readonly": true + }, + "queryable": { + "description": "有此状态的文章是否可被公开查询。", + "type": "boolean", + "context": ["view", "edit"], + "readonly": true + }, + "show_in_list": { + "description": "是否在编辑文章类型时包含文章列表。", + "type": "boolean", + "context": ["edit"], + "readonly": true + }, + "slug": { + "description": "状态的英数字标识符。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "date_floating": { + "description": "有此状态的文章可否设置浮动发布日期。", + "type": "boolean", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "name", + "private", + "protected", + "public", + "queryable", + "show_in_list", + "slug", + "date_floating" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "type": { + "title": "type", + "type": "object", + "properties": { + "capabilities": { + "description": "文章类型使用的所有权限。", + "type": "object", + "context": ["edit"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "description": { + "description": "文章类型的人类可读描述。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "hierarchical": { + "description": "该文章类型是否拥有子类型。", + "type": "boolean", + "context": ["view", "edit"], + "readonly": true + }, + "viewable": { + "description": "此文章类型是否可被查看。", + "type": "boolean", + "context": ["edit"], + "readonly": true + }, + "labels": { + "description": "文章类型不同上下文中的人类可读标签。", + "type": "object", + "context": ["edit"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "name": { + "description": "文章类型的标题。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "slug": { + "description": "文章类型的英数字标识符。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "supports": { + "description": "文章类型支持的所有功能。", + "type": "object", + "context": ["edit"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "has_archive": { + "description": "如果值为字符串,则值将被用作归档别名。 如果值为 false,则此文章类型不会归档。", + "type": ["string", "boolean"], + "context": ["view", "edit"], + "readonly": true + }, + "taxonomies": { + "description": "与文章类型关联的分类法。", + "type": "array", + "items": { "type": "string" }, + "context": ["view", "edit"], + "readonly": true + }, + "rest_base": { + "description": "与文章类型关联的REST base路由。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "rest_namespace": { + "description": "文章类型的 REST 路由命名空间。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "visibility": { + "description": "文章类型的可见性设置。", + "type": "object", + "context": ["edit"], + "readonly": true, + "properties": { + "show_ui": { + "description": "是否生成用于管理此文章类型的默认 UI。", + "type": "boolean" + }, + "show_in_nav_menus": { + "description": "是否使文章类型可在导航菜单中选择。", + "type": "boolean" + } + }, + "x-apifox-orders": ["show_ui", "show_in_nav_menus"], + "x-apifox-ignore-properties": [] + }, + "icon": { + "description": "文章类型的图标。", + "type": ["string", "null"], + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": [ + "capabilities", + "description", + "hierarchical", + "viewable", + "labels", + "name", + "slug", + "supports", + "has_archive", + "taxonomies", + "rest_base", + "rest_namespace", + "visibility", + "icon" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_navigation-revision": { + "title": "wp_navigation-revision", + "type": "object", + "properties": { + "author": { + "description": "修订版本的作者 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "date": { + "description": "修订版本发布的日期“站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "修订版本发布的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "修订版的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "modified": { + "description": "修订版本的最后修改日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "modified_gmt": { + "description": "修订版本最后修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "parent": { + "description": "修订版的父级 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "slug": { + "description": "修订版本的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 内容,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": [ + "raw", + "rendered", + "block_version", + "protected" + ], + "x-apifox-ignore-properties": [] + }, + "preview_link": { + "description": "此文章的预览链接。", + "type": "string", + "format": "uri", + "context": ["edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "author", + "date", + "date_gmt", + "guid", + "id", + "modified", + "modified_gmt", + "parent", + "slug", + "title", + "content", + "preview_link" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_navigation": { + "title": "wp_navigation", + "type": "object", + "properties": { + "date": { + "description": "文章发布的日期(站点时区)。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "该文章发布的 GMT 日期。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "文章的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "link": { + "description": "文章的网址。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "modified": { + "description": "文章最后修改的日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "modified_gmt": { + "description": "文章最后一次修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "slug": { + "description": "文章的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "status": { + "description": "文章的命名状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "context": ["view", "edit"] + }, + "type": { + "description": "文章的类型。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "password": { + "description": "用来保护内容和摘要的密码。", + "type": "string", + "context": ["edit"] + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 内容,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": [ + "raw", + "rendered", + "block_version", + "protected" + ], + "x-apifox-ignore-properties": [] + }, + "template": { + "description": "用于显示文章的主题文件。", + "type": "string", + "context": ["view", "edit"] + } + }, + "links": [ + { + "rel": "https://api.w.org/action-publish", + "title": "当前用户可以发布此文章。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/navigation/{id}", + "targetSchema": { + "type": "object", + "properties": { + "status": { "type": "string", "enum": ["publish", "future"] } + } + } + }, + { + "rel": "https://api.w.org/action-unfiltered-html", + "title": "当前用户可以发布未经过滤的HTML标签和JavaScript。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/navigation/{id}", + "targetSchema": { + "type": "object", + "properties": { "content": { "raw": { "type": "string" } } } + } + } + ], + "x-apifox-orders": [ + "date", + "date_gmt", + "guid", + "id", + "link", + "modified", + "modified_gmt", + "slug", + "status", + "type", + "password", + "title", + "content", + "template" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_template_part-revision": { + "title": "wp_template_part-revision", + "type": "object", + "properties": { + "author": { + "description": "修订版本的作者 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "date": { + "description": "修订版本发布的日期“站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "修订版本发布的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "修订版本的 GUID,存放于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "id": { + "description": "修订版的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "modified": { + "description": "修订版本的最后修改日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "modified_gmt": { + "description": "修订版本最后修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "parent": { + "description": "修订版的父级 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "slug": { + "description": "修订版本的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "模板的标题。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的标题,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "rendered": { + "description": "模板的 HTML 标题,已转换以供显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + } + }, + "content": { + "description": "模板的内容。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的内容,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "block_version": { + "description": "模板使用的内容块格式的版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + } + } + }, + "preview_link": { + "description": "此文章的预览链接。", + "type": "string", + "format": "uri", + "context": ["edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "author", + "date", + "date_gmt", + "guid", + "id", + "modified", + "modified_gmt", + "parent", + "slug", + "title", + "content", + "preview_link" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_template_part": { + "title": "wp_template_part", + "type": "object", + "properties": { + "id": { + "description": "模板的ID。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "slug": { + "description": "标识模板的唯一别名。", + "type": "string", + "context": ["embed", "view", "edit"], + "minLength": 1, + "pattern": "[a-zA-Z0-9_\\%-]+" + }, + "theme": { + "description": "模板的主题标识符。", + "type": "string", + "context": ["embed", "view", "edit"] + }, + "type": { + "description": "模板的类型。", + "type": "string", + "context": ["embed", "view", "edit"] + }, + "source": { + "description": "模板来源", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "origin": { + "description": "自定义模板源", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "content": { + "description": "模板的内容。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的内容,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "block_version": { + "description": "模板使用的内容块格式的版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + } + } + }, + "title": { + "description": "模板的标题。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的标题,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "rendered": { + "description": "模板的 HTML 标题,已转换以供显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + } + }, + "description": { + "description": "模板的描述。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"] + }, + "status": { + "description": "模板的状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "default": "publish", + "context": ["embed", "view", "edit"] + }, + "wp_id": { + "description": "文章ID。", + "type": "integer", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "has_theme_file": { + "description": "主题文件存在。", + "type": "bool", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "author": { + "description": "模板作者的 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "area": { + "description": "模板组件用途(页眉、页脚等)。", + "type": "string", + "context": ["embed", "view", "edit"] + } + }, + "x-apifox-orders": [ + "id", + "slug", + "theme", + "type", + "source", + "origin", + "content", + "title", + "description", + "status", + "wp_id", + "has_theme_file", + "author", + "area" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_template-revision": { + "title": "wp_template-revision", + "type": "object", + "properties": { + "author": { + "description": "修订版本的作者 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "date": { + "description": "修订版本发布的日期“站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "修订版本发布的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "修订版本的 GUID,存放于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "id": { + "description": "修订版的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "modified": { + "description": "修订版本的最后修改日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "modified_gmt": { + "description": "修订版本最后修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "parent": { + "description": "修订版的父级 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "slug": { + "description": "修订版本的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "模板的标题。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的标题,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "rendered": { + "description": "模板的 HTML 标题,已转换以供显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + } + }, + "content": { + "description": "模板的内容。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的内容,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "block_version": { + "description": "模板使用的内容块格式的版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + } + } + }, + "preview_link": { + "description": "此文章的预览链接。", + "type": "string", + "format": "uri", + "context": ["edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "author", + "date", + "date_gmt", + "guid", + "id", + "modified", + "modified_gmt", + "parent", + "slug", + "title", + "content", + "preview_link" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_template": { + "title": "wp_template", + "type": "object", + "properties": { + "id": { + "description": "模板的ID。", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "slug": { + "description": "标识模板的唯一别名。", + "type": "string", + "context": ["embed", "view", "edit"], + "minLength": 1, + "pattern": "[a-zA-Z0-9_\\%-]+" + }, + "theme": { + "description": "模板的主题标识符。", + "type": "string", + "context": ["embed", "view", "edit"] + }, + "type": { + "description": "模板的类型。", + "type": "string", + "context": ["embed", "view", "edit"] + }, + "source": { + "description": "模板来源", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "origin": { + "description": "自定义模板源", + "type": "string", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "content": { + "description": "模板的内容。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的内容,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "block_version": { + "description": "模板使用的内容块格式的版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + } + } + }, + "title": { + "description": "模板的标题。", + "type": ["object", "string"], + "default": "", + "context": ["embed", "view", "edit"], + "properties": { + "raw": { + "description": "模板的标题,因为它存在于数据库中。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "rendered": { + "description": "模板的 HTML 标题,已转换以供显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + } + }, + "description": { + "description": "模板的描述。", + "type": "string", + "default": "", + "context": ["embed", "view", "edit"] + }, + "status": { + "description": "模板的状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "default": "publish", + "context": ["embed", "view", "edit"] + }, + "wp_id": { + "description": "文章ID。", + "type": "integer", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "has_theme_file": { + "description": "主题文件存在。", + "type": "bool", + "context": ["embed", "view", "edit"], + "readonly": true + }, + "author": { + "description": "模板作者的 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "is_custom": { + "description": "模板是否为自定义模板。", + "type": "bool", + "context": ["embed", "view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "id", + "slug", + "theme", + "type", + "source", + "origin", + "content", + "title", + "description", + "status", + "wp_id", + "has_theme_file", + "author", + "is_custom" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_block-revision": { + "title": "wp_block-revision", + "type": "object", + "properties": { + "author": { + "description": "修订版本的作者 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "date": { + "description": "修订版本发布的日期“站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "修订版本发布的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "修订版的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "modified": { + "description": "修订版本的最后修改日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "modified_gmt": { + "description": "修订版本最后修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "parent": { + "description": "修订版的父级 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "slug": { + "description": "修订版本的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["view", "edit"] + } + }, + "x-apifox-orders": ["raw"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "block_version", "protected"], + "x-apifox-ignore-properties": [] + }, + "preview_link": { + "description": "此文章的预览链接。", + "type": "string", + "format": "uri", + "context": ["edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "author", + "date", + "date_gmt", + "guid", + "id", + "modified", + "modified_gmt", + "parent", + "slug", + "title", + "content", + "preview_link" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "wp_block": { + "title": "wp_block", + "type": "object", + "properties": { + "date": { + "description": "文章发布的日期(站点时区)。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "该文章发布的 GMT 日期。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "文章的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "link": { + "description": "文章的网址。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "modified": { + "description": "文章最后修改的日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "modified_gmt": { + "description": "文章最后一次修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "slug": { + "description": "文章的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "status": { + "description": "文章的命名状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "context": ["view", "edit"] + }, + "type": { + "description": "文章的类型。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "password": { + "description": "用来保护内容和摘要的密码。", + "type": "string", + "context": ["edit"] + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["view", "edit"] + } + }, + "x-apifox-orders": ["raw"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "block_version", "protected"], + "x-apifox-ignore-properties": [] + }, + "template": { + "description": "用于显示文章的主题文件。", + "type": "string", + "context": ["view", "edit"] + } + }, + "links": [ + { + "rel": "https://api.w.org/action-publish", + "title": "当前用户可以发布此文章。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/blocks/{id}", + "targetSchema": { + "type": "object", + "properties": { + "status": { "type": "string", "enum": ["publish", "future"] } + } + } + }, + { + "rel": "https://api.w.org/action-unfiltered-html", + "title": "当前用户可以发布未经过滤的HTML标签和JavaScript。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/blocks/{id}", + "targetSchema": { + "type": "object", + "properties": { "content": { "raw": { "type": "string" } } } + } + } + ], + "x-apifox-orders": [ + "date", + "date_gmt", + "guid", + "id", + "link", + "modified", + "modified_gmt", + "slug", + "status", + "type", + "password", + "title", + "content", + "template" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "nav_menu_item-revision": { + "title": "nav_menu_item-revision", + "type": "object", + "properties": { + "author": { + "description": "修订版本的作者 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "date": { + "description": "修订版本发布的日期“站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "修订版本发布的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "修订版本的 GUID,存放于数据库中。", + "type": "string", + "context": ["view", "edit"] + }, + "id": { + "description": "修订版的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "modified": { + "description": "修订版本的最后修改日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "modified_gmt": { + "description": "修订版本最后修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "parent": { + "description": "修订版的父级 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "slug": { + "description": "修订版本的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "对象的标题。", + "type": ["string", "object"], + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "对象的标题,存放于数据库。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "对象的HTML标题,转换后显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + } + }, + "preview_link": { + "description": "此文章的预览链接。", + "type": "string", + "format": "uri", + "context": ["edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "author", + "date", + "date_gmt", + "guid", + "id", + "modified", + "modified_gmt", + "parent", + "slug", + "title", + "preview_link" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "nav_menu_item": { + "title": "nav_menu_item", + "type": "object", + "properties": { + "title": { + "description": "对象的标题。", + "type": ["string", "object"], + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "对象的标题,存放于数据库。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "对象的HTML标题,转换后显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + } + }, + "id": { + "description": "对象的唯一标识符。", + "type": "integer", + "default": 0, + "minimum": 0, + "context": ["view", "edit", "embed"], + "readonly": true + }, + "type_label": { + "description": "用于描述此类菜单项的单数标签。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "type": { + "description": "原始表示的对象组,如 \"post_type \"或 \"taxonomy\"。", + "type": "string", + "enum": ["taxonomy", "post_type", "post_type_archive", "custom"], + "context": ["view", "edit", "embed"], + "default": "custom" + }, + "status": { + "description": "对象的命名状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "default": "publish", + "context": ["view", "edit", "embed"] + }, + "parent": { + "description": "对象的父对象ID。", + "type": "integer", + "minimum": 0, + "default": 0, + "context": ["view", "edit", "embed"] + }, + "attr_title": { + "description": "此菜单项的link元素的title属性的文本。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "classes": { + "description": "此菜单项的链接元素的类名称。", + "type": "array", + "items": { "type": "string" }, + "context": ["view", "edit", "embed"] + }, + "description": { + "description": "此菜单项的描述。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "menu_order": { + "description": "导航菜单项的nav_menu_item的DB ID(如果有),否则为0。", + "context": ["view", "edit", "embed"], + "type": "integer", + "minimum": 1, + "default": 1 + }, + "object": { + "description": "对象初始的表示类型,如 “分类”、“文章”和“附件”。", + "context": ["view", "edit", "embed"], + "type": "string" + }, + "object_id": { + "description": "此菜单项表示的原始对象的数据库 ID,例如文章的 ID 或分类的 term_id。", + "context": ["view", "edit", "embed"], + "type": "integer", + "minimum": 0, + "default": 0 + }, + "target": { + "description": "此菜单项的链接元素的target属性。", + "type": "string", + "context": ["view", "edit", "embed"], + "enum": ["_blank", ""] + }, + "url": { + "description": "该菜单项指向的URL。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"] + }, + "xfn": { + "description": "该菜单项的链接中表示的XFN关系。", + "type": "array", + "items": { "type": "string" }, + "context": ["view", "edit", "embed"] + }, + "invalid": { + "description": "菜单项是否表示不存在的对象。", + "context": ["view", "edit", "embed"], + "type": "boolean", + "readonly": true + }, + "menus": { + "description": "此对象在nav_menu分类法中指定的项。", + "type": "integer", + "context": ["view", "edit"] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + } + }, + "links": [ + { + "rel": "https://api.w.org/action-publish", + "title": "当前用户可以发布此文章。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/menu-items/{id}", + "targetSchema": { + "type": "object", + "properties": { + "status": { "type": "string", "enum": ["publish", "future"] } + } + } + }, + { + "rel": "https://api.w.org/action-unfiltered-html", + "title": "当前用户可以发布未经过滤的HTML标签和JavaScript。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/menu-items/{id}", + "targetSchema": { + "type": "object", + "properties": { "content": { "raw": { "type": "string" } } } + } + }, + { + "rel": "https://api.w.org/action-assign-menus", + "title": "当前用户可以指定nav_menu分类法内的项目。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/menu-items/{id}", + "targetSchema": { + "type": "object", + "properties": { + "menus": { "type": "array", "items": { "type": "integer" } } + } + } + }, + { + "rel": "https://api.w.org/action-create-menus", + "title": "当前用户可以创建nav_menu分类法内的项目。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/menu-items/{id}", + "targetSchema": { + "type": "object", + "properties": { + "menus": { "type": "array", "items": { "type": "integer" } } + } + } + }, + { + "rel": "https://api.w.org/menu-item-object", + "title": "获取链接对象。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/menu-items/{id}", + "targetSchema": { + "type": "object", + "properties": { "object": { "type": "integer" } } + } + } + ], + "x-apifox-orders": [ + "title", + "id", + "type_label", + "type", + "status", + "parent", + "attr_title", + "classes", + "description", + "menu_order", + "object", + "object_id", + "target", + "url", + "xfn", + "invalid", + "menus", + "meta" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "attachment": { + "title": "attachment", + "type": "object", + "properties": { + "date": { + "description": "文章发布的日期(站点时区)。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "该文章发布的 GMT 日期。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "文章的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "link": { + "description": "文章的网址。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "modified": { + "description": "文章最后修改的日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "modified_gmt": { + "description": "文章最后一次修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "slug": { + "description": "文章的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "status": { + "description": "文章的命名状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "context": ["view", "edit"] + }, + "type": { + "description": "文章的类型。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "permalink_template": { + "description": "文章的固定链接模板。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "generated_slug": { + "description": "从文章标题自动生成的别名。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "author": { + "description": "文章作者的ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "comment_status": { + "description": "文章是否开放评论。", + "type": "string", + "enum": ["open", "closed"], + "context": ["view", "edit"] + }, + "ping_status": { + "description": "文章是否接受ping。", + "type": "string", + "enum": ["open", "closed"], + "context": ["view", "edit"] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + }, + "template": { + "description": "用于显示文章的主题文件。", + "type": "string", + "context": ["view", "edit"] + }, + "alt_text": { + "description": "在附件未能显示时显示的替换文本。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "caption": { + "description": "附件说明文字。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "附件的说明文字,存放于数据库。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "附件的 HTML 说明文字,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "description": { + "description": "附件的描述。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "附件的描述,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "附件的 HTML 描述,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "media_type": { + "description": "附件类型。", + "type": "string", + "enum": ["image", "file"], + "context": ["view", "edit", "embed"], + "readonly": true + }, + "mime_type": { + "description": "附件的MIME类型。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "media_details": { + "description": "媒体文件具体到类型的详情。", + "type": "object", + "context": ["view", "edit", "embed"], + "readonly": true, + "x-apifox-orders": [], + "properties": {}, + "x-apifox-ignore-properties": [] + }, + "post": { + "description": "附件所属文章的ID。", + "type": "integer", + "context": ["view", "edit"] + }, + "source_url": { + "description": "原始附件文件的URL。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "missing_image_sizes": { + "description": "附件缺少的图片尺寸列表。", + "type": "array", + "items": { "type": "string" }, + "context": ["edit"], + "readonly": true + } + }, + "links": [ + { + "rel": "https://api.w.org/action-unfiltered-html", + "title": "当前用户可以发布未经过滤的HTML标签和JavaScript。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/media/{id}", + "targetSchema": { + "type": "object", + "properties": { "content": { "raw": { "type": "string" } } } + } + }, + { + "rel": "https://api.w.org/action-assign-author", + "title": "当前用户可以更改此文章的作者。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/media/{id}", + "targetSchema": { + "type": "object", + "properties": { "author": { "type": "integer" } } + } + } + ], + "x-apifox-orders": [ + "date", + "date_gmt", + "guid", + "id", + "link", + "modified", + "modified_gmt", + "slug", + "status", + "type", + "permalink_template", + "generated_slug", + "title", + "author", + "comment_status", + "ping_status", + "meta", + "template", + "alt_text", + "caption", + "description", + "media_type", + "mime_type", + "media_details", + "post", + "source_url", + "missing_image_sizes" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "page-revision": { + "title": "page-revision", + "type": "object", + "properties": { + "author": { + "description": "修订版本的作者 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "date": { + "description": "修订版本发布的日期“站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "修订版本发布的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "修订版的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "modified": { + "description": "修订版本的最后修改日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "modified_gmt": { + "description": "修订版本最后修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "parent": { + "description": "修订版的父级 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "slug": { + "description": "修订版本的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 内容,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": [ + "raw", + "rendered", + "block_version", + "protected" + ], + "x-apifox-ignore-properties": [] + }, + "excerpt": { + "description": "该篇文章的摘要。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的摘要,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 摘要,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "protected": { + "description": "摘要是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered", "protected"], + "x-apifox-ignore-properties": [] + }, + "preview_link": { + "description": "此文章的预览链接。", + "type": "string", + "format": "uri", + "context": ["edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "author", + "date", + "date_gmt", + "guid", + "id", + "modified", + "modified_gmt", + "parent", + "slug", + "title", + "content", + "excerpt", + "preview_link" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "page": { + "title": "page", + "type": "object", + "properties": { + "date": { + "description": "文章发布的日期(站点时区)。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "该文章发布的 GMT 日期。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "文章的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "link": { + "description": "文章的网址。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "modified": { + "description": "文章最后修改的日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "modified_gmt": { + "description": "文章最后一次修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "slug": { + "description": "文章的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "status": { + "description": "文章的命名状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "context": ["view", "edit"] + }, + "type": { + "description": "文章的类型。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "password": { + "description": "用来保护内容和摘要的密码。", + "type": "string", + "context": ["edit"] + }, + "permalink_template": { + "description": "文章的固定链接模板。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "generated_slug": { + "description": "从文章标题自动生成的别名。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "parent": { + "description": "文章的父级 ID。", + "type": "integer", + "context": ["view", "edit"] + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 内容,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": [ + "raw", + "rendered", + "block_version", + "protected" + ], + "x-apifox-ignore-properties": [] + }, + "author": { + "description": "文章作者的ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "excerpt": { + "description": "该篇文章的摘要。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的摘要,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 摘要,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "protected": { + "description": "摘要是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered", "protected"], + "x-apifox-ignore-properties": [] + }, + "featured_media": { + "description": "文章的特色媒体 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "comment_status": { + "description": "文章是否开放评论。", + "type": "string", + "enum": ["open", "closed"], + "context": ["view", "edit"] + }, + "ping_status": { + "description": "文章是否接受ping。", + "type": "string", + "enum": ["open", "closed"], + "context": ["view", "edit"] + }, + "menu_order": { + "description": "文章与其他文章的顺序。", + "type": "integer", + "context": ["view", "edit"] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + }, + "template": { + "description": "用于显示文章的主题文件。", + "type": "string", + "context": ["view", "edit"] + } + }, + "links": [ + { + "rel": "https://api.w.org/action-publish", + "title": "当前用户可以发布此文章。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/pages/{id}", + "targetSchema": { + "type": "object", + "properties": { + "status": { "type": "string", "enum": ["publish", "future"] } + } + } + }, + { + "rel": "https://api.w.org/action-unfiltered-html", + "title": "当前用户可以发布未经过滤的HTML标签和JavaScript。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/pages/{id}", + "targetSchema": { + "type": "object", + "properties": { "content": { "raw": { "type": "string" } } } + } + }, + { + "rel": "https://api.w.org/action-assign-author", + "title": "当前用户可以更改此文章的作者。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/pages/{id}", + "targetSchema": { + "type": "object", + "properties": { "author": { "type": "integer" } } + } + } + ], + "x-apifox-orders": [ + "date", + "date_gmt", + "guid", + "id", + "link", + "modified", + "modified_gmt", + "slug", + "status", + "type", + "password", + "permalink_template", + "generated_slug", + "parent", + "title", + "content", + "author", + "excerpt", + "featured_media", + "comment_status", + "ping_status", + "menu_order", + "meta", + "template" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "post-revision": { + "title": "post-revision", + "type": "object", + "properties": { + "author": { + "description": "修订版本的作者 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "date": { + "description": "修订版本发布的日期“站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "修订版本发布的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "修订版的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "modified": { + "description": "修订版本的最后修改日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "modified_gmt": { + "description": "修订版本最后修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"] + }, + "parent": { + "description": "修订版的父级 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "slug": { + "description": "修订版本的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 内容,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": [ + "raw", + "rendered", + "block_version", + "protected" + ], + "x-apifox-ignore-properties": [] + }, + "excerpt": { + "description": "该篇文章的摘要。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的摘要,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 摘要,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "protected": { + "description": "摘要是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered", "protected"], + "x-apifox-ignore-properties": [] + }, + "preview_link": { + "description": "此文章的预览链接。", + "type": "string", + "format": "uri", + "context": ["edit"], + "readonly": true + } + }, + "x-apifox-orders": [ + "author", + "date", + "date_gmt", + "guid", + "id", + "modified", + "modified_gmt", + "parent", + "slug", + "title", + "content", + "excerpt", + "preview_link" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + }, + "post": { + "title": "post", + "type": "object", + "properties": { + "date": { + "description": "文章发布的日期(站点时区)。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit", "embed"] + }, + "date_gmt": { + "description": "该文章发布的 GMT 日期。", + "type": ["string", "null"], + "format": "date-time", + "context": ["view", "edit"] + }, + "guid": { + "description": "文章的全局唯一标识符。", + "type": "object", + "context": ["view", "edit"], + "readonly": true, + "properties": { + "raw": { + "description": "文章的 GUID,存放于数据库中。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "rendered": { + "description": "文章的 GUID,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "id": { + "description": "文章的唯一标识符。", + "type": "integer", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "link": { + "description": "文章的网址。", + "type": "string", + "format": "uri", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "modified": { + "description": "文章最后修改的日期(站点时区)。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "modified_gmt": { + "description": "文章最后一次修改的 GMT 日期。", + "type": "string", + "format": "date-time", + "context": ["view", "edit"], + "readonly": true + }, + "slug": { + "description": "文章的字母数字标识符,其类型是唯一的。", + "type": "string", + "context": ["view", "edit", "embed"] + }, + "status": { + "description": "文章的命名状态。", + "type": "string", + "enum": ["publish", "future", "draft", "pending", "private"], + "context": ["view", "edit"] + }, + "type": { + "description": "文章的类型。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "password": { + "description": "用来保护内容和摘要的密码。", + "type": "string", + "context": ["edit"] + }, + "permalink_template": { + "description": "文章的固定链接模板。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "generated_slug": { + "description": "从文章标题自动生成的别名。", + "type": "string", + "context": ["edit"], + "readonly": true + }, + "title": { + "description": "文章的标题。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的标题,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 标题,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered"], + "x-apifox-ignore-properties": [] + }, + "content": { + "description": "文章的内容。", + "type": "object", + "context": ["view", "edit"], + "properties": { + "raw": { + "description": "文章的内容,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 内容,经转换后用于显示。", + "type": "string", + "context": ["view", "edit"], + "readonly": true + }, + "block_version": { + "description": "该文章所使用的内容区块格式版本。", + "type": "integer", + "context": ["edit"], + "readonly": true + }, + "protected": { + "description": "内容是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": [ + "raw", + "rendered", + "block_version", + "protected" + ], + "x-apifox-ignore-properties": [] + }, + "author": { + "description": "文章作者的ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "excerpt": { + "description": "该篇文章的摘要。", + "type": "object", + "context": ["view", "edit", "embed"], + "properties": { + "raw": { + "description": "文章的摘要,存放于数据库中。", + "type": "string", + "context": ["edit"] + }, + "rendered": { + "description": "文章的 HTML 摘要,经转换后用于显示。", + "type": "string", + "context": ["view", "edit", "embed"], + "readonly": true + }, + "protected": { + "description": "摘要是否受到密码保护。", + "type": "boolean", + "context": ["view", "edit", "embed"], + "readonly": true + } + }, + "x-apifox-orders": ["raw", "rendered", "protected"], + "x-apifox-ignore-properties": [] + }, + "featured_media": { + "description": "文章的特色媒体 ID。", + "type": "integer", + "context": ["view", "edit", "embed"] + }, + "comment_status": { + "description": "文章是否开放评论。", + "type": "string", + "enum": ["open", "closed"], + "context": ["view", "edit"] + }, + "ping_status": { + "description": "文章是否接受ping。", + "type": "string", + "enum": ["open", "closed"], + "context": ["view", "edit"] + }, + "format": { + "description": "文章的形式。", + "type": "string", + "enum": [ + "standard", + "aside", + "chat", + "gallery", + "link", + "image", + "quote", + "status", + "video", + "audio" + ], + "context": ["view", "edit"] + }, + "meta": { + "description": "元字段。", + "type": "object", + "context": ["view", "edit"], + "properties": {}, + "x-apifox-orders": [], + "x-apifox-ignore-properties": [] + }, + "sticky": { + "description": "文章是否为置顶。", + "type": "boolean", + "context": ["view", "edit"] + }, + "template": { + "description": "用于显示文章的主题文件。", + "type": "string", + "context": ["view", "edit"] + }, + "categories": { + "description": "在 category 分类法中分配给该文章的项目。", + "type": "array", + "items": { "type": "integer" }, + "context": ["view", "edit"] + }, + "tags": { + "description": "在 post_tag 分类法中分配给该文章的项目。", + "type": "array", + "items": { "type": "integer" }, + "context": ["view", "edit"] + } + }, + "links": [ + { + "rel": "https://api.w.org/action-publish", + "title": "当前用户可以发布此文章。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { + "status": { "type": "string", "enum": ["publish", "future"] } + } + } + }, + { + "rel": "https://api.w.org/action-unfiltered-html", + "title": "当前用户可以发布未经过滤的HTML标签和JavaScript。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { "content": { "raw": { "type": "string" } } } + } + }, + { + "rel": "https://api.w.org/action-sticky", + "title": "当前用户可以置顶此文章。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { "sticky": { "type": "boolean" } } + } + }, + { + "rel": "https://api.w.org/action-assign-author", + "title": "当前用户可以更改此文章的作者。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { "author": { "type": "integer" } } + } + }, + { + "rel": "https://api.w.org/action-assign-categories", + "title": "当前用户可以指定category分类法内的项目。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { "type": "integer" } + } + } + } + }, + { + "rel": "https://api.w.org/action-create-categories", + "title": "当前用户可以创建category分类法内的项目。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { "type": "integer" } + } + } + } + }, + { + "rel": "https://api.w.org/action-assign-tags", + "title": "当前用户可以指定post_tag分类法内的项目。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { + "tags": { "type": "array", "items": { "type": "integer" } } + } + } + }, + { + "rel": "https://api.w.org/action-create-tags", + "title": "当前用户可以创建post_tag分类法内的项目。", + "href": "http://127.0.0.1/index.php?rest_route=/wp/v2/posts/{id}", + "targetSchema": { + "type": "object", + "properties": { + "tags": { "type": "array", "items": { "type": "integer" } } + } + } + } + ], + "x-apifox-orders": [ + "date", + "date_gmt", + "guid", + "id", + "link", + "modified", + "modified_gmt", + "slug", + "status", + "type", + "password", + "permalink_template", + "generated_slug", + "title", + "content", + "author", + "excerpt", + "featured_media", + "comment_status", + "ping_status", + "format", + "meta", + "sticky", + "template", + "categories", + "tags" + ], + "x-apifox-ignore-properties": [], + "x-apifox-folder": "Schemas" + } + }, + "securitySchemes": {} + }, + "servers": [] +}