Arcane Intelligence

Arcane Intelligence · Actions GPT

Dice Roll API

  • GET /roll/{num}/{sides}Rolls a dice
Schéma original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Dice Roll API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://dice.padhub.xyz"
    }
  ],
  "paths": {
    "/roll/{num}/{sides}": {
      "get": {
        "operationId": "rollDice",
        "summary": "Rolls a dice",
        "parameters": [
          {
            "name": "num",
            "in": "path",
            "required": true,
            "description": "Number of dice to roll",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sides",
            "in": "path",
            "required": true,
            "description": "Number of sides on the dice",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}