Monsterbrew GPT

Monsterbrew GPT · GPT 작업

Monsterbrew API

An API to create 5e monsters.

  • POST /createHomebrewProcess text and return a new URL

    Takes text as input, and returns the URL.

원본 API 스키마
{
  "openapi": "3.0.0",
  "info": {
    "title": "Monsterbrew API",
    "version": "1.0.0",
    "description": "An API to create 5e monsters."
  },
  "servers": [
    {
      "url": "https://us-central1-dragonroll-1.cloudfunctions.net/"
    }
  ],
  "paths": {
    "/createHomebrew": {
      "post": {
        "operationId": "createHomebrew",
        "summary": "Process text and return a new URL",
        "description": "Takes text as input, and returns the URL.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "content": {
                    "type": "string",
                    "description": "The text to be processed."
                  }
                },
                "required": [
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully processed the text and returned the URL.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "The resulting URL after processing."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request, usually due to missing content in the request."
          },
          "500": {
            "description": "Internal server error, indicating a problem with the server or the script."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "Description of the error."
          }
        }
      }
    }
  }
}