{
  "openapi": "3.0.0",
  "info": {
    "title": "Authentication API",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.production.de.insiders.cloud/1/rest"
    }
  ],
  "paths": {
    "/accounts/authentication/RequestToken": {
      "post": {
        "operationId": "RequestToken",
        "requestBody": {
          "x-name": "request",
          "content": {
            "application/json": {
              "schema": {
                "nullable": false,
                "$ref": "#/components/schemas/RequestTokenRequest"
              }
            }
          },
          "required": true,
          "x-position": 1
        },
        "responses": {
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "503": {
            "description": ""
          },
          "500": {
            "description": ""
          },
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestTokenResponse"
                }
              }
            }
          }
        }
      }
    },
    "/accounts/authentication/version": {
      "get": {
        "operationId": "GetVersion",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVersionResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "token": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "RequestTokenRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "username",
          "password"
        ],
        "properties": {
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        }
      },
      "RequestTokenResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "token",
          "validUntil"
        ],
        "properties": {
          "token": {
            "type": "string"
          },
          "validUntil": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "GetVersionResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Major": {
            "type": "string"
          },
          "Minor": {
            "type": "string"
          },
          "Patch": {
            "type": "string"
          },
          "Commit": {
            "type": "string"
          },
          "Version": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "token": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}