Ze WP Repo Assistant
Ze WP Repo Assistant · GPT アクション
WP Data Dashboard
WP Data Dashboard API
GET /api/themes/Get the themes.GET /api/themes/{slug}Get a single theme.
元の API スキーマ
{
"openapi": "3.0.0",
"info": {
"title": "WP Data Dashboard",
"description": "WP Data Dashboard API",
"version": "0.2.6"
},
"servers": [
{
"url": "https://www.wp-data-dashboard.com"
}
],
"paths": {
"/api/themes/": {
"get": {
"tags": [
"Themes"
],
"summary": "Get the themes.",
"operationId": "get_api_themes_get",
"parameters": [
{
"name": "search",
"in": "query",
"description": "Search for themes.",
"schema": {
"type": "string",
"maxLength": 128,
"minLength": 3
},
"example": "Twenty"
},
{
"name": "page",
"in": "query",
"description": "The page number.",
"schema": {
"type": "integer",
"minimum": 1
},
"example": 1
},
{
"name": "per_page",
"in": "query",
"description": "The number of items per page.",
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"example": 10
},
{
"name": "order",
"in": "query",
"description": "The order of the items.",
"schema": {
"type": "string",
"enum": [
"ASC",
"DESC"
]
},
"example": "ASC"
},
{
"name": "orderby",
"in": "query",
"description": "The field to order the items by.",
"schema": {
"type": "string"
},
"example": "name"
}
],
"responses": {
"200": {
"description": "All themes the current user is allowed to see.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ThemeDto"
}
}
}
}
}
}
}
},
"/api/themes/{slug}": {
"get": {
"tags": [
"Themes"
],
"summary": "Get a single theme.",
"operationId": "get_api_themes_get_single",
"parameters": [
{
"name": "slug",
"in": "path",
"description": "The theme slug.",
"required": true,
"schema": {
"type": "string",
"example": "twenty-twenty-two"
}
}
],
"responses": {
"200": {
"description": "The theme.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ThemeDto"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ThemeDto": {
"required": [
"name",
"slug"
],
"properties": {
"id": {
"title": "The theme id.",
"description": "The theme id.",
"type": "integer",
"example": 1
},
"name": {
"title": "The theme name.",
"description": "The theme name.",
"type": "string",
"example": "Twenty Twenty-Two"
},
"slug": {
"title": "The theme slug.",
"description": "The theme slug.",
"type": "string",
"example": "twenty-twenty-two"
},
"version": {
"title": "The theme version.",
"description": "The theme version.",
"type": "string",
"example": "1.0.0"
},
"preview_url": {
"title": "The theme preview url.",
"description": "The theme preview url.",
"type": "string",
"example": "https://wp-themes.com/quickpress/"
},
"screenshot_url": {
"title": "The theme screenshot url.",
"description": "The theme screenshot url.",
"type": "string",
"example": "//ts.w.org/wp-content/themes/quickpress/screenshot.png?ver=1.9.2"
},
"homepage": {
"title": "The theme homepage.",
"description": "The theme homepage.",
"type": "string",
"example": "https://wordpress.org/themes/quickpress/"
},
"description": {
"title": "The theme description.",
"description": "The theme description.",
"type": "string",
"example": "QuickPress is a minimalistic blogging ..."
},
"template": {
"title": "The theme template.",
"description": "The theme template.",
"type": "string",
"example": "quickpress"
},
"theme_url": {
"title": "The theme url.",
"description": "The theme url.",
"type": "string",
"example": "https://www.quickonlinetips.com/archives/quickpress-wordpress-theme/"
},
"last_updated": {
"title": "The theme last updated date.",
"description": "The theme last updated date.",
"type": "string",
"format": "date-time",
"example": "2021-09-28T00:00:00+00:00"
},
"rating": {
"title": "The theme rating.",
"description": "The theme rating.",
"type": "number",
"format": "float",
"example": 100
},
"num_ratings": {
"title": "The total theme ratings.",
"description": "The total theme ratings.",
"type": "integer",
"example": 100
},
"active_installs": {
"title": "The total theme active installs.",
"description": "The total theme active installs.",
"type": "integer",
"example": 100
},
"usage_score": {
"title": "The theme usage score.",
"description": "The theme usage score.",
"type": "number",
"format": "float",
"example": 100
},
"downloaded": {
"title": "The total theme downloads.",
"description": "The total theme downloads.",
"type": "integer",
"example": 100
}
},
"type": "object"
}
}
}
}