{
  "openapi": "3.0.0",
  "info": {
    "title": "Notification Callback",
    "version": "0.5",
    "contact": {
      "name": "FITKO",
      "url": "https://www.fitko.de/"
    },
    "license": {
      "name": "Creative Commons Attribution Share Alike 4.0 (CC BY-SA 4.0)",
      "url": "https://creativecommons.org/licenses/by-sa/4.0/"
    },
    "description": "Pseudo API um den Callback zu modellieren."
  },
  "servers": [
    {
      "url": "{callbackHost}"
    }
  ],
  "paths": {
    "/{callbackPath}": {
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "callbackPath",
          "in": "path",
          "required": true
        }
      ],
      "post": {
        "summary": "Callback",
        "operationId": "callback",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "description": "Beschreibt den Callback, mit dem der Zustelldienst den Subscriber benachrichtigt.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "destinationId": {
                    "type": "string"
                  },
                  "applications": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "applicationId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "applicationId"
                      ]
                    }
                  }
                },
                "required": [
                  "destinationId",
                  "applications"
                ]
              },
              "examples": {
                "example-1": {
                  "value": {
                    "destinationId": "821",
                    "applications": [
                      {
                        "applicationId": "98472"
                      }
                    ]
                  }
                },
                "example-2": {
                  "value": {
                    "destinationId": "123",
                    "applications": [
                      {
                        "applicationId": "456"
                      },
                      {
                        "applicationId": "789"
                      }
                    ]
                  }
                }
              }
            }
          },
          "description": "Information zu den wartenden Anträgen"
        },
        "tags": [
          "callback"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "callback"
    }
  ]
}