{
  "openapi": "3.0.0",
  "info": {
    "title": "LearnData API",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.production.de.insiders.cloud/1/rest"
    }
  ],
  "paths": {
    "/subsystems/learndata/info/{subsystem}": {
      "get": {
        "operationId": "GetLearnDataInfos",
        "parameters": [
          {
            "name": "subsystem",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "documentclass",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "learnkey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "layoutnumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "500": {
            "description": ""
          },
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetLearnDataInfosResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "token": []
          }
        ]
      }
    },
    "/subsystems/learndata/data/{subsystem}/{documentClass}/{learnKey}/{layoutNumber}": {
      "get": {
        "operationId": "GetLearnData",
        "parameters": [
          {
            "name": "subsystem",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "documentClass",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 2
          },
          {
            "name": "learnKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 3
          },
          {
            "name": "layoutNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 4
          }
        ],
        "responses": {
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "404": {
            "description": ""
          },
          "500": {
            "description": ""
          },
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetLearnDataResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "token": []
          }
        ]
      },
      "put": {
        "operationId": "WriteLearnData",
        "parameters": [
          {
            "name": "subsystem",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "documentClass",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 2
          },
          {
            "name": "learnKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 3
          },
          {
            "name": "layoutNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 4
          }
        ],
        "requestBody": {
          "x-name": "body",
          "content": {
            "application/json": {
              "schema": {
                "nullable": false,
                "$ref": "#/components/schemas/WriteLearnDataRequestBody"
              }
            }
          },
          "required": true,
          "x-position": 5
        },
        "responses": {
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "500": {
            "description": ""
          },
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "token": []
          }
        ]
      },
      "delete": {
        "operationId": "DeleteLearnDataLayout",
        "parameters": [
          {
            "name": "subsystem",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "documentClass",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 2
          },
          {
            "name": "learnKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 3
          },
          {
            "name": "layoutNumber",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-position": 4
          }
        ],
        "responses": {
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "404": {
            "description": ""
          },
          "500": {
            "description": ""
          },
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "token": []
          }
        ]
      }
    },
    "/subsystems/learndata/data/{subsystem}/{documentClass}/{learnKey}": {
      "delete": {
        "operationId": "DeleteLearnData",
        "parameters": [
          {
            "name": "subsystem",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 1
          },
          {
            "name": "documentClass",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 2
          },
          {
            "name": "learnKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "x-position": 3
          }
        ],
        "responses": {
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "404": {
            "description": ""
          },
          "500": {
            "description": ""
          },
          "200": {
            "description": ""
          }
        },
        "security": [
          {
            "token": []
          }
        ]
      }
    },
    "/subsystems/learndata/version": {
      "get": {
        "operationId": "GetVersion",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetVersionResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "token": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "GetLearnDataInfosResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "infos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LearnDataInfo"
            }
          }
        }
      },
      "LearnDataInfo": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "documentClass": {
            "type": "string"
          },
          "learnKey": {
            "type": "string"
          },
          "layoutNumber": {
            "type": "integer",
            "format": "int32"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "GetLearnDataResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "learnData"
        ],
        "properties": {
          "learnData": {
            "type": "string",
            "format": "byte"
          }
        }
      },
      "WriteLearnDataRequestBody": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "learnData": {
            "type": "string",
            "format": "byte"
          }
        }
      },
      "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"
      }
    }
  }
}