Wikidocs Reviewer
Wikidocs Reviewer · GPT-Aktionen
Wikidocs profile
Get data from Wikidocs
GET /api/v1/book/listGetABookListAPI to get a list of books with the starting page, size, and keyword as input.
GET /api/v1/toc/{book_id}GetABookTableOfContentsGet A Book Table Of Contents
GET /api/v1/page/{page_id}PageDetailsGet the details of a page by its page ID number.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Wikidocs profile",
"description": "Get data from Wikidocs",
"version": "v1.0.0"
},
"servers": [
{
"url": "https://wikidocs.net"
}
],
"paths": {
"/api/v1/book/list": {
"get": {
"description": "API to get a list of books with the starting page, size, and keyword as input.",
"operationId": "GetABookList",
"parameters": [
{
"name": "page",
"in": "query",
"description": "Page number",
"required": false,
"schema": {
"type": "integer",
"default": 1
}
},
{
"name": "size",
"in": "query",
"description": "Number to show on a page",
"required": false,
"schema": {
"type": "integer",
"default": 10
}
},
{
"name": "keyword",
"in": "query",
"description": "Search terms (title, author name)",
"required": false,
"schema": {
"type": "string",
"default": ""
}
},
{
"name": "sort_order",
"in": "query",
"description": "Sort by (recommend, popular, recent)",
"required": false,
"schema": {
"type": "string",
"default": "recommend",
"enum": [
"recommend",
"popular",
"recent"
]
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {}
}
},
"deprecated": false
}
},
"/api/v1/toc/{book_id}": {
"get": {
"description": "Get A Book Table Of Contents",
"operationId": "GetABookTableOfContents",
"parameters": [
{
"name": "book_id",
"in": "path",
"description": "book id",
"required": true,
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"subject": {
"type": "string"
},
"depth": {
"type": "integer"
}
}
}
}
}
}
}
},
"deprecated": false
}
},
"/api/v1/page/{page_id}": {
"get": {
"description": "Get the details of a page by its page ID number.",
"operationId": "PageDetails",
"parameters": [
{
"name": "page_id",
"in": "path",
"description": "page id",
"required": true,
"schema": {
"type": "integer"
}
}
],
"deprecated": false
}
}
}
}