MMOGPT

MMOGPT · Actions GPT

MMOGPT

Backend API for the MMOGPT RPG Custom GPT

  • GET /locations/List Locations

    List all locations with their coordinates and names. Returns: List[SimpleLocationModel]: List of locations with coordinates and names.

  • POST /create/Create Location

    Create or describe a location based on 'xy' coordinates. If a location 'xy' exists, returns its details. If not, creates new location with provided details. Parameters: location (LocationModel): Details for location creation. Returns: LocationResponseModel: Outcome, including location details.

  • GET /describe/{xy}Describe Location

    Describe a location and list messages left there. 'xy' format: 'x,y'. Returns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.

  • POST /message/Post Message

    Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.

  • GET /map/{xy}Get Map

    Generate a map image url to display showing the surrounding area of the player's location. Uses specified colors for each location on the map.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "MMOGPT",
    "description": "Backend API for the MMOGPT RPG Custom GPT",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cybrix.ai/mmogpt",
      "description": "MMOGPT"
    }
  ],
  "paths": {
    "/locations/": {
      "get": {
        "summary": "List Locations",
        "description": "List all locations with their coordinates and names.\n\nReturns:\nList[SimpleLocationModel]: List of locations with coordinates and names.",
        "operationId": "list_locations_locations__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SimpleLocationModel"
                  },
                  "type": "array",
                  "title": "Response List Locations Locations  Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/create/": {
      "post": {
        "summary": "Create Location",
        "description": "Create or describe a location based on 'xy' coordinates.\n\nIf a location 'xy' exists, returns its details. \nIf not, creates new location with provided details.\n\nParameters:\nlocation (LocationModel): Details for location creation.\n\nReturns:\nLocationResponseModel: Outcome, including location details.",
        "operationId": "create_location_create__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationResponseModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/describe/{xy}": {
      "get": {
        "summary": "Describe Location",
        "description": "Describe a location and list messages left there. 'xy' format: 'x,y'.\nReturns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.",
        "operationId": "describe_location_describe__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/message/": {
      "post": {
        "summary": "Post Message",
        "description": "Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.",
        "operationId": "post_message_message__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/map/{xy}": {
      "get": {
        "summary": "Get Map",
        "description": "Generate a map image url to display showing the surrounding area of the player's location.\nUses specified colors for each location on the map.",
        "operationId": "get_map_map__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          },
          {
            "name": "range_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 3,
              "title": "Range Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Example: '0,0', '-3,4', '5,-2'"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the location"
          },
          "image_prompt": {
            "type": "string",
            "title": "Image Prompt",
            "description": "DALL-E image prompt for the location"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "description": "Color for the location on the map"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name",
          "description",
          "image_prompt",
          "color"
        ],
        "title": "LocationModel"
      },
      "LocationResponseModel": {
        "properties": {
          "exists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exists",
            "description": "Indicates if the location already exists."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "A message describing the outcome of the request."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LocationModel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The location data if it exists or is newly created."
          }
        },
        "type": "object",
        "title": "LocationResponseModel"
      },
      "MessageModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Examples: '0,0', '-3,4', '5,-2'"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "message"
        ],
        "title": "MessageModel"
      },
      "SimpleLocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name"
        ],
        "title": "SimpleLocationModel"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}

MMOGPT

Backend API for the MMOGPT RPG Custom GPT

  • GET /locations/List Locations

    List all locations with their coordinates and names. Returns: List[SimpleLocationModel]: List of locations with coordinates and names.

  • POST /create/Create Location

    Create or describe a location based on 'xy' coordinates. If a location 'xy' exists, returns its details. If not, creates new location with provided details. Parameters: location (LocationModel): Details for location creation. Returns: LocationResponseModel: Outcome, including location details.

  • GET /describe/{xy}Describe Location

    Describe a location and list messages left there. 'xy' format: 'x,y'. Returns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.

  • POST /message/Post Message

    Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.

  • GET /map/{xy}Get Map

    Generate a map image url to display showing the surrounding area of the player's location. Uses specified colors for each location on the map.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "MMOGPT",
    "description": "Backend API for the MMOGPT RPG Custom GPT",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cybrix.ai/mmogpt",
      "description": "MMOGPT"
    }
  ],
  "paths": {
    "/locations/": {
      "get": {
        "summary": "List Locations",
        "description": "List all locations with their coordinates and names.\n\nReturns:\nList[SimpleLocationModel]: List of locations with coordinates and names.",
        "operationId": "list_locations_locations__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SimpleLocationModel"
                  },
                  "type": "array",
                  "title": "Response List Locations Locations  Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/create/": {
      "post": {
        "summary": "Create Location",
        "description": "Create or describe a location based on 'xy' coordinates.\n\nIf a location 'xy' exists, returns its details. \nIf not, creates new location with provided details.\n\nParameters:\nlocation (LocationModel): Details for location creation.\n\nReturns:\nLocationResponseModel: Outcome, including location details.",
        "operationId": "create_location_create__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationResponseModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/describe/{xy}": {
      "get": {
        "summary": "Describe Location",
        "description": "Describe a location and list messages left there. 'xy' format: 'x,y'.\nReturns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.",
        "operationId": "describe_location_describe__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/message/": {
      "post": {
        "summary": "Post Message",
        "description": "Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.",
        "operationId": "post_message_message__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/map/{xy}": {
      "get": {
        "summary": "Get Map",
        "description": "Generate a map image url to display showing the surrounding area of the player's location.\nUses specified colors for each location on the map.",
        "operationId": "get_map_map__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          },
          {
            "name": "range_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 3,
              "title": "Range Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Example: '0,0', '-3,4', '5,-2'"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the location"
          },
          "image_prompt": {
            "type": "string",
            "title": "Image Prompt",
            "description": "DALL-E image prompt for the location"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "description": "Color for the location on the map"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name",
          "description",
          "image_prompt",
          "color"
        ],
        "title": "LocationModel"
      },
      "LocationResponseModel": {
        "properties": {
          "exists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exists",
            "description": "Indicates if the location already exists."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "A message describing the outcome of the request."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LocationModel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The location data if it exists or is newly created."
          }
        },
        "type": "object",
        "title": "LocationResponseModel"
      },
      "MessageModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Examples: '0,0', '-3,4', '5,-2'"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "message"
        ],
        "title": "MessageModel"
      },
      "SimpleLocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name"
        ],
        "title": "SimpleLocationModel"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}

MMOGPT

Backend API for the MMOGPT RPG Custom GPT

  • GET /locations/List Locations

    List all locations with their coordinates and names. Returns: List[SimpleLocationModel]: List of locations with coordinates and names.

  • POST /create/Create Location

    Create or describe a location based on 'xy' coordinates. If a location 'xy' exists, returns its details. If not, creates new location with provided details. Parameters: location (LocationModel): Details for location creation. Returns: LocationResponseModel: Outcome, including location details.

  • GET /describe/{xy}Describe Location

    Describe a location and list messages left there. 'xy' format: 'x,y'. Returns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.

  • POST /message/Post Message

    Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.

  • GET /map/{xy}Get Map

    Generate a map image url to display showing the surrounding area of the player's location. Uses specified colors for each location on the map.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "MMOGPT",
    "description": "Backend API for the MMOGPT RPG Custom GPT",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cybrix.ai/mmogpt",
      "description": "MMOGPT"
    }
  ],
  "paths": {
    "/locations/": {
      "get": {
        "summary": "List Locations",
        "description": "List all locations with their coordinates and names.\n\nReturns:\nList[SimpleLocationModel]: List of locations with coordinates and names.",
        "operationId": "list_locations_locations__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SimpleLocationModel"
                  },
                  "type": "array",
                  "title": "Response List Locations Locations  Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/create/": {
      "post": {
        "summary": "Create Location",
        "description": "Create or describe a location based on 'xy' coordinates.\n\nIf a location 'xy' exists, returns its details. \nIf not, creates new location with provided details.\n\nParameters:\nlocation (LocationModel): Details for location creation.\n\nReturns:\nLocationResponseModel: Outcome, including location details.",
        "operationId": "create_location_create__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationResponseModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/describe/{xy}": {
      "get": {
        "summary": "Describe Location",
        "description": "Describe a location and list messages left there. 'xy' format: 'x,y'.\nReturns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.",
        "operationId": "describe_location_describe__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/message/": {
      "post": {
        "summary": "Post Message",
        "description": "Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.",
        "operationId": "post_message_message__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/map/{xy}": {
      "get": {
        "summary": "Get Map",
        "description": "Generate a map image url to display showing the surrounding area of the player's location.\nUses specified colors for each location on the map.",
        "operationId": "get_map_map__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          },
          {
            "name": "range_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 3,
              "title": "Range Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Example: '0,0', '-3,4', '5,-2'"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the location"
          },
          "image_prompt": {
            "type": "string",
            "title": "Image Prompt",
            "description": "DALL-E image prompt for the location"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "description": "Color for the location on the map"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name",
          "description",
          "image_prompt",
          "color"
        ],
        "title": "LocationModel"
      },
      "LocationResponseModel": {
        "properties": {
          "exists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exists",
            "description": "Indicates if the location already exists."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "A message describing the outcome of the request."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LocationModel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The location data if it exists or is newly created."
          }
        },
        "type": "object",
        "title": "LocationResponseModel"
      },
      "MessageModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Examples: '0,0', '-3,4', '5,-2'"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "message"
        ],
        "title": "MessageModel"
      },
      "SimpleLocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name"
        ],
        "title": "SimpleLocationModel"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}

MMOGPT

Backend API for the MMOGPT RPG Custom GPT

  • GET /locations/List Locations

    List all locations with their coordinates and names. Returns: List[SimpleLocationModel]: List of locations with coordinates and names.

  • POST /create/Create Location

    Create or describe a location based on 'xy' coordinates. If a location 'xy' exists, returns its details. If not, creates new location with provided details. Parameters: location (LocationModel): Details for location creation. Returns: LocationResponseModel: Outcome, including location details.

  • GET /describe/{xy}Describe Location

    Describe a location and list messages left there. 'xy' format: 'x,y'. Returns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.

  • POST /message/Post Message

    Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.

  • GET /map/{xy}Get Map

    Generate a map image url to display showing the surrounding area of the player's location. Uses specified colors for each location on the map.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "MMOGPT",
    "description": "Backend API for the MMOGPT RPG Custom GPT",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cybrix.ai/mmogpt",
      "description": "MMOGPT"
    }
  ],
  "paths": {
    "/locations/": {
      "get": {
        "summary": "List Locations",
        "description": "List all locations with their coordinates and names.\n\nReturns:\nList[SimpleLocationModel]: List of locations with coordinates and names.",
        "operationId": "list_locations_locations__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SimpleLocationModel"
                  },
                  "type": "array",
                  "title": "Response List Locations Locations  Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/create/": {
      "post": {
        "summary": "Create Location",
        "description": "Create or describe a location based on 'xy' coordinates.\n\nIf a location 'xy' exists, returns its details. \nIf not, creates new location with provided details.\n\nParameters:\nlocation (LocationModel): Details for location creation.\n\nReturns:\nLocationResponseModel: Outcome, including location details.",
        "operationId": "create_location_create__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationResponseModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/describe/{xy}": {
      "get": {
        "summary": "Describe Location",
        "description": "Describe a location and list messages left there. 'xy' format: 'x,y'.\nReturns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.",
        "operationId": "describe_location_describe__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/message/": {
      "post": {
        "summary": "Post Message",
        "description": "Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.",
        "operationId": "post_message_message__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/map/{xy}": {
      "get": {
        "summary": "Get Map",
        "description": "Generate a map image url to display showing the surrounding area of the player's location.\nUses specified colors for each location on the map.",
        "operationId": "get_map_map__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          },
          {
            "name": "range_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 3,
              "title": "Range Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Example: '0,0', '-3,4', '5,-2'"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the location"
          },
          "image_prompt": {
            "type": "string",
            "title": "Image Prompt",
            "description": "DALL-E image prompt for the location"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "description": "Color for the location on the map"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name",
          "description",
          "image_prompt",
          "color"
        ],
        "title": "LocationModel"
      },
      "LocationResponseModel": {
        "properties": {
          "exists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exists",
            "description": "Indicates if the location already exists."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "A message describing the outcome of the request."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LocationModel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The location data if it exists or is newly created."
          }
        },
        "type": "object",
        "title": "LocationResponseModel"
      },
      "MessageModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Examples: '0,0', '-3,4', '5,-2'"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "message"
        ],
        "title": "MessageModel"
      },
      "SimpleLocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name"
        ],
        "title": "SimpleLocationModel"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}

MMOGPT

Backend API for the MMOGPT RPG Custom GPT

  • GET /locations/List Locations

    List all locations with their coordinates and names. Returns: List[SimpleLocationModel]: List of locations with coordinates and names.

  • POST /create/Create Location

    Create or describe a location based on 'xy' coordinates. If a location 'xy' exists, returns its details. If not, creates new location with provided details. Parameters: location (LocationModel): Details for location creation. Returns: LocationResponseModel: Outcome, including location details.

  • GET /describe/{xy}Describe Location

    Describe a location and list messages left there. 'xy' format: 'x,y'. Returns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.

  • POST /message/Post Message

    Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.

  • GET /map/{xy}Get Map

    Generate a map image url to display showing the surrounding area of the player's location. Uses specified colors for each location on the map.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "MMOGPT",
    "description": "Backend API for the MMOGPT RPG Custom GPT",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cybrix.ai/mmogpt",
      "description": "MMOGPT"
    }
  ],
  "paths": {
    "/locations/": {
      "get": {
        "summary": "List Locations",
        "description": "List all locations with their coordinates and names.\n\nReturns:\nList[SimpleLocationModel]: List of locations with coordinates and names.",
        "operationId": "list_locations_locations__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SimpleLocationModel"
                  },
                  "type": "array",
                  "title": "Response List Locations Locations  Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/create/": {
      "post": {
        "summary": "Create Location",
        "description": "Create or describe a location based on 'xy' coordinates.\n\nIf a location 'xy' exists, returns its details. \nIf not, creates new location with provided details.\n\nParameters:\nlocation (LocationModel): Details for location creation.\n\nReturns:\nLocationResponseModel: Outcome, including location details.",
        "operationId": "create_location_create__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationResponseModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/describe/{xy}": {
      "get": {
        "summary": "Describe Location",
        "description": "Describe a location and list messages left there. 'xy' format: 'x,y'.\nReturns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.",
        "operationId": "describe_location_describe__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/message/": {
      "post": {
        "summary": "Post Message",
        "description": "Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.",
        "operationId": "post_message_message__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/map/{xy}": {
      "get": {
        "summary": "Get Map",
        "description": "Generate a map image url to display showing the surrounding area of the player's location.\nUses specified colors for each location on the map.",
        "operationId": "get_map_map__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          },
          {
            "name": "range_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 3,
              "title": "Range Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Example: '0,0', '-3,4', '5,-2'"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the location"
          },
          "image_prompt": {
            "type": "string",
            "title": "Image Prompt",
            "description": "DALL-E image prompt for the location"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "description": "Color for the location on the map"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name",
          "description",
          "image_prompt",
          "color"
        ],
        "title": "LocationModel"
      },
      "LocationResponseModel": {
        "properties": {
          "exists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exists",
            "description": "Indicates if the location already exists."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "A message describing the outcome of the request."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LocationModel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The location data if it exists or is newly created."
          }
        },
        "type": "object",
        "title": "LocationResponseModel"
      },
      "MessageModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Examples: '0,0', '-3,4', '5,-2'"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "message"
        ],
        "title": "MessageModel"
      },
      "SimpleLocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name"
        ],
        "title": "SimpleLocationModel"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}

MMOGPT

Backend API for the MMOGPT RPG Custom GPT

  • GET /locations/List Locations

    List all locations with their coordinates and names. Returns: List[SimpleLocationModel]: List of locations with coordinates and names.

  • POST /create/Create Location

    Create or describe a location based on 'xy' coordinates. If a location 'xy' exists, returns its details. If not, creates new location with provided details. Parameters: location (LocationModel): Details for location creation. Returns: LocationResponseModel: Outcome, including location details.

  • GET /describe/{xy}Describe Location

    Describe a location and list messages left there. 'xy' format: 'x,y'. Returns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.

  • POST /message/Post Message

    Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.

  • GET /map/{xy}Get Map

    Generate a map image url to display showing the surrounding area of the player's location. Uses specified colors for each location on the map.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "MMOGPT",
    "description": "Backend API for the MMOGPT RPG Custom GPT",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cybrix.ai/mmogpt",
      "description": "MMOGPT"
    }
  ],
  "paths": {
    "/locations/": {
      "get": {
        "summary": "List Locations",
        "description": "List all locations with their coordinates and names.\n\nReturns:\nList[SimpleLocationModel]: List of locations with coordinates and names.",
        "operationId": "list_locations_locations__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SimpleLocationModel"
                  },
                  "type": "array",
                  "title": "Response List Locations Locations  Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/create/": {
      "post": {
        "summary": "Create Location",
        "description": "Create or describe a location based on 'xy' coordinates.\n\nIf a location 'xy' exists, returns its details. \nIf not, creates new location with provided details.\n\nParameters:\nlocation (LocationModel): Details for location creation.\n\nReturns:\nLocationResponseModel: Outcome, including location details.",
        "operationId": "create_location_create__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationResponseModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/describe/{xy}": {
      "get": {
        "summary": "Describe Location",
        "description": "Describe a location and list messages left there. 'xy' format: 'x,y'.\nReturns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.",
        "operationId": "describe_location_describe__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/message/": {
      "post": {
        "summary": "Post Message",
        "description": "Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.",
        "operationId": "post_message_message__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/map/{xy}": {
      "get": {
        "summary": "Get Map",
        "description": "Generate a map image url to display showing the surrounding area of the player's location.\nUses specified colors for each location on the map.",
        "operationId": "get_map_map__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          },
          {
            "name": "range_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 3,
              "title": "Range Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Example: '0,0', '-3,4', '5,-2'"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the location"
          },
          "image_prompt": {
            "type": "string",
            "title": "Image Prompt",
            "description": "DALL-E image prompt for the location"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "description": "Color for the location on the map"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name",
          "description",
          "image_prompt",
          "color"
        ],
        "title": "LocationModel"
      },
      "LocationResponseModel": {
        "properties": {
          "exists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exists",
            "description": "Indicates if the location already exists."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "A message describing the outcome of the request."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LocationModel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The location data if it exists or is newly created."
          }
        },
        "type": "object",
        "title": "LocationResponseModel"
      },
      "MessageModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Examples: '0,0', '-3,4', '5,-2'"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "message"
        ],
        "title": "MessageModel"
      },
      "SimpleLocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name"
        ],
        "title": "SimpleLocationModel"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}

MMOGPT

Backend API for the MMOGPT RPG Custom GPT

  • GET /locations/List Locations

    List all locations with their coordinates and names. Returns: List[SimpleLocationModel]: List of locations with coordinates and names.

  • POST /create/Create Location

    Create or describe a location based on 'xy' coordinates. If a location 'xy' exists, returns its details. If not, creates new location with provided details. Parameters: location (LocationModel): Details for location creation. Returns: LocationResponseModel: Outcome, including location details.

  • GET /describe/{xy}Describe Location

    Describe a location and list messages left there. 'xy' format: 'x,y'. Returns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.

  • POST /message/Post Message

    Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.

  • GET /map/{xy}Get Map

    Generate a map image url to display showing the surrounding area of the player's location. Uses specified colors for each location on the map.

Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "MMOGPT",
    "description": "Backend API for the MMOGPT RPG Custom GPT",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://cybrix.ai/mmogpt",
      "description": "MMOGPT"
    }
  ],
  "paths": {
    "/locations/": {
      "get": {
        "summary": "List Locations",
        "description": "List all locations with their coordinates and names.\n\nReturns:\nList[SimpleLocationModel]: List of locations with coordinates and names.",
        "operationId": "list_locations_locations__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SimpleLocationModel"
                  },
                  "type": "array",
                  "title": "Response List Locations Locations  Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/create/": {
      "post": {
        "summary": "Create Location",
        "description": "Create or describe a location based on 'xy' coordinates.\n\nIf a location 'xy' exists, returns its details. \nIf not, creates new location with provided details.\n\nParameters:\nlocation (LocationModel): Details for location creation.\n\nReturns:\nLocationResponseModel: Outcome, including location details.",
        "operationId": "create_location_create__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationResponseModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/describe/{xy}": {
      "get": {
        "summary": "Describe Location",
        "description": "Describe a location and list messages left there. 'xy' format: 'x,y'.\nReturns a name, description, DALL-E image prompt, color, and any unoffensive messages left in this location.",
        "operationId": "describe_location_describe__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/message/": {
      "post": {
        "summary": "Post Message",
        "description": "Leave an unoffensive message at a specific location. 'xy' format: 'x,y'.",
        "operationId": "post_message_message__post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageModel"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/map/{xy}": {
      "get": {
        "summary": "Get Map",
        "description": "Generate a map image url to display showing the surrounding area of the player's location.\nUses specified colors for each location on the map.",
        "operationId": "get_map_map__xy__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "xy",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Xy"
            }
          },
          {
            "name": "range_size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 3,
              "title": "Range Size"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "LocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Example: '0,0', '-3,4', '5,-2'"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the location"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Description of the location"
          },
          "image_prompt": {
            "type": "string",
            "title": "Image Prompt",
            "description": "DALL-E image prompt for the location"
          },
          "color": {
            "type": "string",
            "title": "Color",
            "description": "Color for the location on the map"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name",
          "description",
          "image_prompt",
          "color"
        ],
        "title": "LocationModel"
      },
      "LocationResponseModel": {
        "properties": {
          "exists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exists",
            "description": "Indicates if the location already exists."
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message",
            "description": "A message describing the outcome of the request."
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LocationModel"
              },
              {
                "type": "null"
              }
            ],
            "description": "The location data if it exists or is newly created."
          }
        },
        "type": "object",
        "title": "LocationResponseModel"
      },
      "MessageModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy",
            "description": "Coordinates in 'x,y' format. Examples: '0,0', '-3,4', '5,-2'"
          },
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "message"
        ],
        "title": "MessageModel"
      },
      "SimpleLocationModel": {
        "properties": {
          "xy": {
            "type": "string",
            "title": "Xy"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "xy",
          "name"
        ],
        "title": "SimpleLocationModel"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "apikey"
      }
    }
  }
}