📚 Limitless Mentor (NONFICTION)

📚 Limitless Mentor (NONFICTION) · Actions GPT

Book Question API

API for querying book details and content based on a question.

  • GET /searchRetrieve relevant book ideas based on a question
Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Book Question API",
    "version": "1.0.0",
    "description": "API for querying book details and content based on a question."
  },
  "servers": [
    {
      "url": "https://library.thelimitless.app",
      "description": "Main API server"
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "summary": "Retrieve relevant book ideas based on a question",
        "operationId": "searchBooks",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "The full question that needs to be answered",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A list of books and their content related to the query",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "success"
                      ]
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BookResponse": {
        "type": "object",
        "properties": {
          "book": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "subtitle": {
                "type": "string"
              },
              "authors": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "content": {
            "type": "string"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}