{
  "openapi": "3.1.0",
  "info": {
    "title": "VeditX",
    "version": "1.0.0",
    "description": "Discover, price and run creative workflows."
  },
  "servers": [
    {
      "url": "https://veditx.netlify.app"
    }
  ],
  "paths": {
    "/api/workflows.json": {
      "get": {
        "operationId": "listWorkflows",
        "summary": "Every workflow in the registry, with its known gaps.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/workflows/{id}.json": {
      "get": {
        "operationId": "getWorkflow",
        "summary": "One workflow: inputs, stages, cost, gaps.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Unknown workflow"
          }
        }
      }
    },
    "/api/estimate": {
      "get": {
        "operationId": "estimateCost",
        "summary": "Credits a run would consume, before committing to it.",
        "parameters": [
          {
            "name": "workflow",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "selects",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 10
            }
          },
          {
            "name": "angles",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 2
            }
          },
          {
            "name": "ratios",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 3
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}