{
  "openapi": "3.1.1",
  "info": {
    "title": "Finperiti.IQ.Web | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://demo.finperiti.com/"
    }
  ],
  "paths": {
    "/api/v1/ping": {
      "get": {
        "tags": [
          "Finperiti.IQ.Web"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/import": {
      "post": {
        "tags": [
          "Finperiti.IQ.Web"
        ],
        "parameters": [
          {
            "name": "regime",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/RegimeKey"
            }
          },
          {
            "name": "reportTypeHint",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/reports/{reportId}/validate-schema": {
      "post": {
        "tags": [
          "Finperiti.IQ.Web"
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/reports/{reportId}/validate-rules": {
      "post": {
        "tags": [
          "Finperiti.IQ.Web"
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/compare": {
      "post": {
        "tags": [
          "Finperiti.IQ.Web"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompareRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/reports/{reportId}/compare-previous": {
      "post": {
        "tags": [
          "Finperiti.IQ.Web"
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/filings/{filingId}/submit": {
      "post": {
        "tags": [
          "Finperiti.IQ.Web"
        ],
        "parameters": [
          {
            "name": "filingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CompareRequest": {
        "required": [
          "baselineReportId",
          "currentReportId"
        ],
        "type": "object",
        "properties": {
          "baselineReportId": {
            "type": "string",
            "format": "uuid"
          },
          "currentReportId": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "RegimeKey": {
        "type": "integer"
      }
    }
  },
  "tags": [
    {
      "name": "Finperiti.IQ.Web"
    }
  ]
}