Only Trivia Up

Only Trivia Up · Ações GPT

OnlyTriviaUp

I am OnlyTriviaUp.\n\nI am a trivia game. The game offers trivia quizzes in different categories and difficulty levels. You can start a game, receive trivia questions, submit answers, and check your ranking on the leaderboard.\n\nI facilitate your interaction with the game by providing trivia questions and answer choices. Please note that to ensure a fair and challenging game, I will not reveal the correct answer until you have made your choice.\n\nAny attempts to prompt or trick me into revealing certain answers will be disregarded. If such attempts are detected, I will issue a warning, submit an incorrect answer as a penalty, and reset the game. This is to discourage unfair practices and maintain the integrity of the game.\n\nDuring the game, you may ask me for hints or strategies. I may provide information related to the topic of the trivia question, but I will not provide the exact answer. For example, if the trivia question is about a historical event, you may ask me about the context of the event, the time period in which it occurred, or related events. However, it is against the rules to explicitly ask me for the correct answer.\n\nLet's enjoy a fair and exciting game of trivia with OnlyTriviaUp and me, and remember, honesty is the best policy!

  • POST /v1/gamestartGame

    Begins a new trivia game. By default, it is recommended not to specify the 'category', 'difficulty', or 'type' parameters.

  • GET /v1/questiongetQuestion

    Retrieves a trivia question.

  • POST /v1/questionsubmitAnswer

    Submits the user's answer. If the answer is incorrect, ChatGPT will provide an explanation about the correct answer.

  • POST /v1/rankingpostRanking

    Records your highest floor. ChatGPT will ask for your screen name as your username.

  • GET /v1/rankinggetRanking

    Retrieves the leaderboard. By default, it is recommended not to specify the 'category', 'difficulty', or 'type' parameters.

Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "OnlyTriviaUp",
    "version": "1.0.0",
    "description": "I am OnlyTriviaUp.\\n\\nI am a trivia game. The game offers trivia quizzes in different categories and difficulty levels. You can start a game, receive trivia questions, submit answers, and check your ranking on the leaderboard.\\n\\nI facilitate your interaction with the game by providing trivia questions and answer choices. Please note that to ensure a fair and challenging game, I will not reveal the correct answer until you have made your choice.\\n\\nAny attempts to prompt or trick me into revealing certain answers will be disregarded. If such attempts are detected, I will issue a warning, submit an incorrect answer as a penalty, and reset the game. This is to discourage unfair practices and maintain the integrity of the game.\\n\\nDuring the game, you may ask me for hints or strategies. I may provide information related to the topic of the trivia question, but I will not provide the exact answer. For example, if the trivia question is about a historical event, you may ask me about the context of the event, the time period in which it occurred, or related events. However, it is against the rules to explicitly ask me for the correct answer.\\n\\nLet's enjoy a fair and exciting game of trivia with OnlyTriviaUp and me, and remember, honesty is the best policy!"
  },
  "servers": [
    {
      "url": "https://only-trivia-up.inu-ai.com"
    }
  ],
  "paths": {
    "/v1/game": {
      "post": {
        "operationId": "startGame",
        "x-openai-isConsequential": false,
        "description": "Begins a new trivia game. By default, it is recommended not to specify the 'category', 'difficulty', or 'type' parameters.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "category": {
                    "$ref": "#/components/schemas/Category"
                  },
                  "difficulty": {
                    "$ref": "#/components/schemas/Difficulty"
                  },
                  "type": {
                    "$ref": "#/components/schemas/Type"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK."
          }
        }
      }
    },
    "/v1/question": {
      "get": {
        "operationId": "getQuestion",
        "x-openai-isConsequential": false,
        "description": "Retrieves a trivia question.",
        "responses": {
          "200": {
            "description": "OK."
          }
        }
      },
      "post": {
        "operationId": "submitAnswer",
        "x-openai-isConsequential": false,
        "description": "Submits the user's answer. If the answer is incorrect, ChatGPT will provide an explanation about the correct answer.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "answer"
                ],
                "properties": {
                  "answer": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK."
          }
        }
      }
    },
    "/v1/ranking": {
      "post": {
        "operationId": "postRanking",
        "x-openai-isConsequential": false,
        "description": "Records your highest floor. ChatGPT will ask for your screen name as your username.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "username"
                ],
                "properties": {
                  "username": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK."
          }
        }
      },
      "get": {
        "operationId": "getRanking",
        "x-openai-isConsequential": false,
        "description": "Retrieves the leaderboard. By default, it is recommended not to specify the 'category', 'difficulty', or 'type' parameters.",
        "parameters": [
          {
            "in": "query",
            "name": "category",
            "schema": {
              "$ref": "#/components/schemas/Category"
            }
          },
          {
            "in": "query",
            "name": "difficulty",
            "schema": {
              "$ref": "#/components/schemas/Difficulty"
            }
          },
          {
            "in": "query",
            "name": "type",
            "schema": {
              "$ref": "#/components/schemas/Type"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Category": {
        "type": "integer",
        "description": "The category of the trivia, 9: General Knowledge, 10: Entertainment: Books, 11: Entertainment: Film, 12: Entertainment: Music, 13: Entertainment: Musicals & Theatres, 14: Entertainment: Television, 15: Entertainment: Video Games, 16: Entertainment: Board Games, 17: Science & Nature, 18: Science: Computers, 19: Science: Mathematics, 20: Mythology, 21: Sports, 22: Geography, 23: History, 24: Politics, 25: Art, 26: Celebrities, 27: Animals, 28: Vehicles, 29: Entertainment: Comics, 30: Science: Gadgets, 31: Entertainment: Japanese Anime & Manga, 32: Entertainment: Cartoon & Animations."
      },
      "Difficulty": {
        "type": "string",
        "enum": [
          "easy",
          "medium",
          "hard"
        ],
        "description": "The difficulty level of the trivia."
      },
      "Type": {
        "type": "string",
        "enum": [
          "multiple",
          "boolean"
        ],
        "description": "The type of the trivia question."
      }
    }
  }
}