Echoes of Time

Echoes of Time · GPT Actions

Space Adventure Game Server

API for registering and managing users in a space adventure game.

  • GET /registerregisterUser

    Register a new user

  • GET /get-infogetUserInfo

    Get information for a registered user

  • GET /set-choicesetUserChoice

    Set the next action for a user

原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Space Adventure Game Server",
    "description": "API for registering and managing users in a space adventure game.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://flask-production-93cd.up.railway.app"
    }
  ],
  "paths": {
    "/register": {
      "get": {
        "description": "Register a new user",
        "operationId": "registerUser",
        "parameters": [
          {
            "name": "link",
            "in": "query",
            "description": "User registration link",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/get-info": {
      "get": {
        "description": "Get information for a registered user",
        "operationId": "getUserInfo",
        "parameters": [
          {
            "name": "password",
            "in": "query",
            "description": "User's password",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/set-choice": {
      "get": {
        "description": "Set the next action for a user",
        "operationId": "setUserChoice",
        "parameters": [
          {
            "name": "password",
            "in": "query",
            "description": "User's password",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "choice",
            "in": "query",
            "description": "User's next action choice",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {}
  }
}