Young Person's Primer

Young Person's Primer · GPT Actions

YPPrimer ePub Creation API

This API allows users to create ePub primers with given titles, descriptions, and chapter contents.

  • POST /epub/createCreates an ePub file
Original API schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "YPPrimer ePub Creation API",
    "description": "This API allows users to create ePub primers with given titles, descriptions, and chapter contents.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://ypprimer.vercel.app/api",
      "description": "YPPrimer API server"
    }
  ],
  "paths": {
    "/epub/create": {
      "post": {
        "operationId": "createEpub",
        "x-openai-isConsequential": false,
        "summary": "Creates an ePub file",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "The title of the book"
                  },
                  "description": {
                    "type": "string",
                    "description": "A brief description of the book"
                  },
                  "chapters": {
                    "type": "array",
                    "description": "A list of chapters in the book",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string",
                          "description": "The title of the chapter"
                        },
                        "content": {
                          "type": "string",
                          "description": "The content of the chapter"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ePub file created successfully"
          },
          "400": {
            "description": "Invalid input"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  }
}