{
  "openapi": "3.0.1",
  "info": {
    "title": "FirstAgenda.UploadApi",
    "version": "1.0"
  },
  "paths": {
    "/api/v2/upload/health/loadbalancer": {
      "get": {
        "tags": [
          "SystemHealth"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v2/upload/health/ping": {
      "get": {
        "tags": [
          "SystemHealth"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v2/upload/file": {
      "post": {
        "tags": [
          "Upload"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v2/upload/client/versions/current": {
      "get": {
        "tags": [
          "UploadClient"
        ],
        "summary": "Return version and checksum of most current active upload client",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FirstAgenda.UploadApi.Models.CurrentVersionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FirstAgenda.UploadApi.Models.CurrentVersionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FirstAgenda.UploadApi.Models.CurrentVersionResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/upload/client/versions/{version}": {
      "get": {
        "tags": [
          "UploadClient"
        ],
        "summary": "Get binary for specified version",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v2/upload/log": {
      "post": {
        "tags": [
          "UploadLog"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v2/upload/settings/urls": {
      "get": {
        "tags": [
          "UploadSettings"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v2/upload/starter/kill": {
      "get": {
        "tags": [
          "UploadStarter"
        ],
        "summary": "Returns true, if starter should kill main uploader agent process",
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/v2/upload/starter/heartbeat": {
      "post": {
        "tags": [
          "UploadStarter"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FirstAgenda.UploadApi.Models.UpdateHeartbeatRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FirstAgenda.UploadApi.Models.UpdateHeartbeatRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FirstAgenda.UploadApi.Models.UpdateHeartbeatRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FirstAgenda.UploadApi.Models.CurrentVersionResponse": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "checksum": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FirstAgenda.UploadApi.Models.UpdateHeartbeatRequest": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "serverName": {
            "type": "string",
            "nullable": true
          },
          "serverIp": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}