Visual Story Assistant

Visual Story Assistant · Actions GPT

Mallowverse Random Elements API

This API provides randomized selections of genres, characters, and locations from predefined lists.

  • GET /apiGet random elements based on query parameters

    Returns a selection of genres, characters, and locations based on the specified query parameters. It can return a complete set or individual elements.

Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Mallowverse Random Elements API",
    "version": "1.0.0",
    "description": "This API provides randomized selections of genres, characters, and locations from predefined lists."
  },
  "servers": [
    {
      "url": "https://vsa-api.siyris.repl.co",
      "description": "Production server"
    }
  ],
  "paths": {
    "/api": {
      "get": {
        "operationId": "getRandomElements",
        "summary": "Get random elements based on query parameters",
        "description": "Returns a selection of genres, characters, and locations based on the specified query parameters. It can return a complete set or individual elements.",
        "parameters": [
          {
            "name": "all",
            "in": "query",
            "description": "Return a complete response with default settings",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "genre",
            "in": "query",
            "description": "Return a genre",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "character",
            "in": "query",
            "description": "Return characters",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "characterCount",
            "in": "query",
            "description": "Number of characters to return",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "Return a location",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A JSON object with the selected elements",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "genre": {
                      "type": "string",
                      "description": "Randomly selected genre"
                    },
                    "characters": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Array of randomly selected characters"
                    },
                    "location": {
                      "type": "string",
                      "description": "Randomly selected location"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Genre": {
        "type": "string",
        "description": "A genre from the genre list"
      },
      "Character": {
        "type": "string",
        "description": "A character from the character list"
      },
      "Location": {
        "type": "string",
        "description": "A location from the location list"
      }
    }
  }
}