{
  "openapi": "3.0.1",
  "info": {
    "title": "TaskScheduler",
    "version": "1.0"
  },
  "paths": {
    "/api/ReportDownload/{userName}/{databaseId}/{reportJobResultId}": {
      "get": {
        "tags": [
          "ReportDownload"
        ],
        "parameters": [
          {
            "name": "userName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reportJobResultId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportJobResult/schedule/{userName}/{databaseId}/{schedulerJobId}": {
      "get": {
        "tags": [
          "ReportJobResult"
        ],
        "parameters": [
          {
            "name": "userName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "schedulerJobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler/{userName}/{id}": {
      "get": {
        "tags": [
          "ReportScheduler"
        ],
        "parameters": [
          {
            "name": "userName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler/{userName}/{databaseId}/{jobId}": {
      "get": {
        "tags": [
          "ReportScheduler"
        ],
        "parameters": [
          {
            "name": "userName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler/processedjob/{userName}/{databaseId}": {
      "get": {
        "tags": [
          "ReportScheduler"
        ],
        "parameters": [
          {
            "name": "userName",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler": {
      "post": {
        "tags": [
          "ReportScheduler"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportJob"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportJob"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReportJob"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "ReportScheduler"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledReportJob"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledReportJob"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduledReportJob"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler/{id}": {
      "delete": {
        "tags": [
          "ReportScheduler"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler/DeleteMultiSchedules": {
      "post": {
        "tags": [
          "ReportScheduler"
        ],
        "operationId": "Delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteJobDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteJobDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteJobDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler/DeleteMultiMyReport": {
      "post": {
        "tags": [
          "ReportScheduler"
        ],
        "operationId": "Delete1",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteJobDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteJobDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteJobDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/ReportScheduler/jobstatus/{schedulerJobId}": {
      "get": {
        "tags": [
          "ReportScheduler"
        ],
        "parameters": [
          {
            "name": "schedulerJobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DayOfWeekEnum": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
        ],
        "type": "integer",
        "format": "int32"
      },
      "DeleteJobDto": {
        "type": "object",
        "properties": {
          "jobIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Frequency": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35
        ],
        "type": "integer",
        "format": "int32"
      },
      "ReportJob": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "integer",
            "format": "int32"
          },
          "jobName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "string",
            "nullable": true
          },
          "originalReportName": {
            "type": "string",
            "nullable": true
          },
          "reportName": {
            "type": "string",
            "nullable": true
          },
          "reportFileName": {
            "type": "string",
            "nullable": true
          },
          "reportTitle": {
            "type": "string",
            "nullable": true
          },
          "reportURI": {
            "type": "string",
            "nullable": true
          },
          "notifyUserWhenGenerated": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "paramString": {
            "type": "string",
            "nullable": true
          },
          "databaseId": {
            "type": "string",
            "format": "uuid"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "format": {
            "type": "string",
            "nullable": true
          },
          "hasEmptyParamString": {
            "type": "boolean"
          },
          "reportSchedule": {
            "$ref": "#/components/schemas/Schedule"
          },
          "jobTimeZoneString": {
            "type": "string",
            "nullable": true
          },
          "isNonParamStringJob": {
            "type": "boolean",
            "readOnly": true,
            "deprecated": true
          }
        },
        "additionalProperties": false
      },
      "Schedule": {
        "type": "object",
        "properties": {
          "interval": {
            "type": "string",
            "nullable": true
          },
          "intervalOption": {
            "type": "string",
            "nullable": true
          },
          "minute": {
            "type": "integer",
            "format": "int32"
          },
          "hour": {
            "type": "integer",
            "format": "int32"
          },
          "dayOfMonth": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "dayOfWeek": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DayOfWeekEnum"
            },
            "nullable": true
          },
          "day": {
            "type": "integer",
            "format": "int32"
          },
          "specificDateTime": {
            "type": "string",
            "format": "date-time"
          },
          "frequency": {
            "$ref": "#/components/schemas/Frequency"
          }
        },
        "additionalProperties": false
      },
      "ScheduledReportJob": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "integer",
            "format": "int32"
          },
          "jobName": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedBy": {
            "type": "string",
            "nullable": true
          },
          "originalReportName": {
            "type": "string",
            "nullable": true
          },
          "reportName": {
            "type": "string",
            "nullable": true
          },
          "reportFileName": {
            "type": "string",
            "nullable": true
          },
          "reportTitle": {
            "type": "string",
            "nullable": true
          },
          "reportURI": {
            "type": "string",
            "nullable": true
          },
          "notifyUserWhenGenerated": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "paramString": {
            "type": "string",
            "nullable": true
          },
          "databaseId": {
            "type": "string",
            "format": "uuid"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "format": {
            "type": "string",
            "nullable": true
          },
          "hasEmptyParamString": {
            "type": "boolean"
          },
          "reportSchedule": {
            "$ref": "#/components/schemas/Schedule"
          },
          "jobTimeZoneString": {
            "type": "string",
            "nullable": true
          },
          "isNonParamStringJob": {
            "type": "boolean",
            "readOnly": true,
            "deprecated": true
          },
          "scheduleJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "Bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}