Webtoon Wizard ai

Webtoon Wizard ai · Ações GPT

Dataset API

API for interacting with a dataset.

  • GET /datasetRetrieve dataset information
  • GET /dataRetrieve data from the dataset
Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "Dataset API",
    "version": "1.0.0",
    "description": "API for interacting with a dataset."
  },
  "servers": [
    {
      "url": "https://api.example.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    },
    "schemas": {
      "Dataset": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "DataItem": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string"
          },
          "itemName": {
            "type": "string"
          },
          "itemValue": {
            "type": "number"
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/dataset": {
      "get": {
        "summary": "Retrieve dataset information",
        "operationId": "getDataset",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with dataset information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dataset"
                }
              }
            }
          }
        }
      }
    },
    "/data": {
      "get": {
        "summary": "Retrieve data from the dataset",
        "operationId": "getData",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataItem"
                }
              }
            }
          }
        }
      }
    }
  }
}