{
  "openapi": "3.0.1",
  "info": {
    "title": "api/time-slots/warehouses",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/"
    },
    {
      "url": "https://api.ati.su"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/gw/timeslots/api/v1/warehouse": {
      "post": {
        "description": "Метод создания или обновления склада",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "Идентификатор склада. Если указан, то при наличии склада в системе, его данные будут обновлены"
                  },
                  "name": {
                    "type": "string",
                    "description": "Название склада"
                  },
                  "address": {
                    "type": "string",
                    "description": "Адрес склада"
                  },
                  "city_id": {
                    "type": "integer",
                    "description": "Идентификатор города. Ему соответствует название города из [словаря](https://ati.su/developers/api/dictionaries/geo/)"
                  },
                  "contacts": {
                    "type": "array",
                    "description": "Контакты контактного лица/лиц склада",
                    "items": {
                      "$ref": "#/components/schemas/WarehouseContact"
                    }
                  },
                  "schedule": {
                    "type": "array",
                    "description": "Список рабочих дней склада",
                    "items": {
                      "$ref": "#/components/schemas/ScheduleItem"
                    }
                  }
                },
                "required": [
                  "name",
                  "address",
                  "city_id",
                  "contacts",
                  "schedule"
                ]
              },
              "examples": {
                "Create warehouse": {
                  "value": {
                    "name": "Тестовый склад",
                    "address": "Гельсингфорсская улица, 2А",
                    "city_id": 1,
                    "contacts": [
                      {
                        "name": "Имя менеджера склада",
                        "phone": "+7 000 000-00-00",
                        "country_phone_id": 0
                      }
                    ],
                    "schedule": [
                      {
                        "time_from": "00:00",
                        "time_to": "23:59",
                        "day_of_week": 1
                      },
                      {
                        "time_from": "00:00",
                        "time_to": "23:59",
                        "day_of_week": 2
                      },
                      {
                        "time_from": "00:00",
                        "time_to": "23:59",
                        "day_of_week": 3
                      },
                      {
                        "time_from": "00:00",
                        "time_to": "23:59",
                        "day_of_week": 4
                      },
                      {
                        "time_from": "00:00",
                        "time_to": "23:59",
                        "day_of_week": 5
                      },
                      {
                        "time_from": "00:00",
                        "time_to": "23:59",
                        "day_of_week": 6
                      },
                      {
                        "time_from": "00:00",
                        "time_to": "23:59",
                        "day_of_week": 7
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "warehouse": {
                          "$ref": "#/components/schemas/Warehouse"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Warehouse Created": {
                    "value": {
                      "ok": true,
                      "result": {
                        "warehouse": {
                          "id": 29583,
                          "schedule": [
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "1"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "2"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "3"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "4"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "5"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "6"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "7"
                            }
                          ],
                          "contacts": [
                            {
                              "id": 31311,
                              "name": "Имя менеджера склада",
                              "phone": "+7 000 000-00-00",
                              "country_phone_id": "0",
                              "warehouse": 29583
                            }
                          ],
                          "name": "Тестовый склад",
                          "address": "Гельсингфорсская улица, 2А",
                          "owner": 9338034,
                          "city_id": 1,
                          "country_id": 1,
                          "region_id": 153,
                          "city_verbose": "Санкт-Петербург, РФ",
                          "utc_offset": 180,
                          "date_creation": "2023-06-27T09:57:27.615139+03:00",
                          "date_modified": "2023-06-27T09:57:27.615186+03:00",
                          "deleted": false,
                          "is_test": true
                        }
                      }
                    }
                  }
                }
              }
            },
            "description": "Возвращаются актуальные данные созданного или измененного склада"
          },
          "400": {
            "description": "Ошибка валидации. Возникает, когда в какое-то из полей передано недопустимое значение",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SingleError"
                    },
                    {
                      "$ref": "#/components/schemas/MultipleError"
                    }
                  ]
                },
                "examples": {
                  "Validation Errors": {
                    "value": {
                      "error": "multiple_errors",
                      "error_list": [
                        {
                          "error": "non_field_errors",
                          "reason": "Ожидался list со значениями, но был получен \"str\"."
                        },
                        {
                          "error": "non_field_errors",
                          "reason": "Ожидался list со значениями, но был получен \"str\"."
                        }
                      ],
                      "reason": "invalid"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "description": "Метод получения всех складов пользователя",
        "responses": {
          "200": {
            "description": "Возвращаются все склады пользователя",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "partners_warehouses_count": {
                      "type": "integer",
                      "description": "Количество складов, с которыми у пользователя установлена связь"
                    },
                    "partners_warehouses": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warehouse"
                      },
                      "description": "Список складов, с которыми у пользователя установлена связь"
                    },
                    "count": {
                      "type": "integer",
                      "description": "Количество складов"
                    },
                    "warehouses": {
                      "type": "array",
                      "description": "Список складов",
                      "items": {
                        "$ref": "#/components/schemas/Warehouse"
                      }
                    }
                  }
                },
                "examples": {
                  "Warehouses Returned": {
                    "value": {
                      "ok": true,
                      "result": {
                        "partners_warehouses_count": 0,
                        "partners_warehouses": [],
                        "count": 1,
                        "warehouses": [
                          {
                            "id": 34823,
                            "schedule": [
                              {
                                "time_from": "00:00",
                                "time_to": "23:59",
                                "day_of_week": "1"
                              },
                              {
                                "time_from": "00:00",
                                "time_to": "23:59",
                                "day_of_week": "2"
                              },
                              {
                                "time_from": "00:00",
                                "time_to": "23:59",
                                "day_of_week": "3"
                              },
                              {
                                "time_from": "00:00",
                                "time_to": "23:59",
                                "day_of_week": "4"
                              },
                              {
                                "time_from": "00:00",
                                "time_to": "23:59",
                                "day_of_week": "5"
                              },
                              {
                                "time_from": "00:00",
                                "time_to": "23:59",
                                "day_of_week": "6"
                              },
                              {
                                "time_from": "00:00",
                                "time_to": "23:59",
                                "day_of_week": "7"
                              }
                            ],
                            "contacts": [
                              {
                                "id": 36735,
                                "name": "Имя менеджера склада",
                                "phone": "+7 000 000-00-00",
                                "country_phone_id": "0",
                                "warehouse": 34823
                              }
                            ],
                            "sms_enabled": false,
                            "name": "Тестовый склад",
                            "address": "Гельсингфорсская улица, 2А",
                            "owner": 4022713,
                            "city_id": 1,
                            "country_id": 1,
                            "region_id": 153,
                            "city_verbose": "Санкт-Петербург, РФ",
                            "utc_offset": 180,
                            "date_creation": "2023-07-04T06:57:45.295611+03:00",
                            "date_modified": "2023-07-04T06:57:45.295633+03:00",
                            "deleted": false,
                            "is_test": true
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "description": "Метод удаления складов",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouse_ids": {
                    "type": "list",
                    "description": "Список идентификаторов складов, которые нужно удалить",
                    "items": {
                      "type": "integer",
                      "description": "Идентификатор склада"
                    }
                  }
                },
                "required": [
                  "warehouse_ids"
                ]
              },
              "examples": {
                "Delete warehouse": {
                  "value": {
                    "warehouse_ids": [
                      34823
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "200": {
                          "type": "array",
                          "description": "Список идентификаторов удаленных складов",
                          "items": {
                            "type": "integer",
                            "description": "Идентификатор склада"
                          }
                        },
                        "400": {
                          "type": "array",
                          "description": "Список идентификаторов складов, при удалении которых возникли ошибки валидации",
                          "items": {
                            "type": "integer",
                            "description": "Идентификатор склада"
                          }
                        },
                        "500": {
                          "type": "array",
                          "description": "Список идентификаторов складов, при удалении которых возникли ошибки сервера",
                          "items": {
                            "type": "integer",
                            "description": "Идентификатор склада"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Warehouse Deleted": {
                    "value": {
                      "ok": true,
                      "result": {
                        "200": [
                          34823
                        ],
                        "400": [],
                        "500": []
                      }
                    }
                  }
                }
              }
            },
            "description": "Возвращаются актуальные данные созданного или измененного склада"
          },
          "400": {
            "description": "Ошибка валидации. Возникает, когда в какое-то из полей передано недопустимое значение",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SingleError"
                    },
                    {
                      "$ref": "#/components/schemas/MultipleError"
                    }
                  ]
                },
                "examples": {
                  "Validation Error": {
                    "value": {
                      "error": "bad request",
                      "reason": "Необходимо передать список warehouse_ids",
                      "details": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/gw/timeslots/api/v1/warehouse/{warehouse_id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "warehouse_id",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Идентификатор склада"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Возвращается информация о складе с указанным идентификатором",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "result": {
                      "$ref": "#/components/schemas/Warehouse"
                    }
                  }
                },
                "examples": {
                  "Warehouse Returned": {
                    "value": {
                      "ok": true,
                      "result": {
                        "warehouse": {
                          "id": 34823,
                          "schedule": [
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "1"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "2"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "3"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "4"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "5"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "6"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "7"
                            }
                          ],
                          "contacts": [
                            {
                              "id": 36735,
                              "name": "Имя менеджера склада",
                              "phone": "+7 000 000-00-00",
                              "country_phone_id": "0",
                              "warehouse": 34823
                            }
                          ],
                          "sms_enabled": false,
                          "name": "Тестовый склад",
                          "address": "Гельсингфорсская улица, 2А",
                          "owner": 4022713,
                          "city_id": 1,
                          "country_id": 1,
                          "region_id": 153,
                          "city_verbose": "Санкт-Петербург, РФ",
                          "utc_offset": 180,
                          "date_creation": "2023-07-04T06:57:45.295611+03:00",
                          "date_modified": "2023-07-04T06:57:45.295633+03:00",
                          "deleted": false,
                          "is_test": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Склад не найден",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SingleError"
                },
                "examples": {
                  "Not Found": {
                    "value": {
                      "error": "not_found",
                      "reason": "Склад не найден",
                      "details": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/gw/timeslots/api/v1/warehouse/workload/{warehouse_id}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "warehouse_id",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "Идентификатор склада"
            }
          },
          {
            "in": "query",
            "name": "loading_type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/LoadingType"
            },
            "description": "Cоответствует типу загрузки площадки погрузки-выгрузки"
          }
        ],
        "responses": {
          "200": {
            "description": "Возвращается информация о загруженности склада с указанным идентификатором и указанным типом загрузки",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "workload": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/WarehouseWorkloadItem"
                          }
                        },
                        "warehouse": {
                          "$ref": "#/components/schemas/Warehouse"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "Returned Workload": {
                    "value": {
                      "ok": true,
                      "result": {
                        "workload": [
                          {
                            "date": "2023-07-04T04:26:09.706493Z",
                            "weekday": 2,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-05T04:26:09.706493Z",
                            "weekday": 3,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-06T04:26:09.706493Z",
                            "weekday": 4,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-07T04:26:09.706493Z",
                            "weekday": 5,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-08T04:26:09.706493Z",
                            "weekday": 6,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-09T04:26:09.706493Z",
                            "weekday": 7,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-10T04:26:09.706493Z",
                            "weekday": 1,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-11T04:26:09.706493Z",
                            "weekday": 2,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-12T04:26:09.706493Z",
                            "weekday": 3,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-13T04:26:09.706493Z",
                            "weekday": 4,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-14T04:26:09.706493Z",
                            "weekday": 5,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-15T04:26:09.706493Z",
                            "weekday": 6,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-16T04:26:09.706493Z",
                            "weekday": 7,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          },
                          {
                            "date": "2023-07-17T04:26:09.706493Z",
                            "weekday": 1,
                            "possible_slots_count": 24,
                            "available_slots_count": 24,
                            "loading_level": "low"
                          }
                        ],
                        "warehouse": {
                          "id": 34823,
                          "schedule": [
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "1"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "2"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "3"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "4"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "5"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "6"
                            },
                            {
                              "time_from": "00:00",
                              "time_to": "23:59",
                              "day_of_week": "7"
                            }
                          ],
                          "contacts": [
                            {
                              "id": 36735,
                              "name": "Имя менеджера склада",
                              "phone": "+7 000 000-00-00",
                              "country_phone_id": "0",
                              "warehouse": 34823
                            }
                          ],
                          "sms_enabled": false,
                          "name": "Тестовый склад",
                          "address": "Гельсингфорсская улица, 2А",
                          "owner": 4022713,
                          "city_id": 1,
                          "country_id": 1,
                          "region_id": 153,
                          "city_verbose": "Санкт-Петербург, РФ",
                          "utc_offset": 180,
                          "date_creation": "2023-07-04T06:57:45.295611+03:00",
                          "date_modified": "2023-07-04T06:57:45.295633+03:00",
                          "deleted": false,
                          "is_test": true
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Склад не найден",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SingleError"
                },
                "examples": {
                  "Not Found": {
                    "value": {
                      "error": "not_found",
                      "reason": "Склад не найден",
                      "details": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DayOfWeek": {
        "type": "integer",
        "description": "Идентификатор дня недели. 1-Понедельник, 2-Вторник, 3-Среда и т. д.",
        "required": "true",
        "minimum": 1,
        "maximum": 7
      },
      "ScheduleItem": {
        "type": "object",
        "properties": {
          "time_from": {
            "type": "string",
            "required": "true",
            "description": "Время начала работы склада"
          },
          "time_to": {
            "type": "string",
            "description": "Время окончания работы склада",
            "required": "true"
          },
          "day_of_week": {
            "type": "integer",
            "description": "Идентификатор дня недели. 1-Понедельник, 2-Вторник, 3-Среда и т. д.",
            "required": "true",
            "minimum": 1,
            "maximum": 7
          }
        },
        "required": [
          "time_from",
          "time_to",
          "day_of_week"
        ]
      },
      "LoadingType": {
        "type": "string",
        "enum": [
          "any",
          "gates",
          "up",
          "lateral"
        ],
        "description": "Тип загрузки"
      },
      "WarehouseContact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Идентификатор контакта во временных окнах"
          },
          "name": {
            "type": "string",
            "description": "Имя контактного лица",
            "required": "true"
          },
          "phone": {
            "type": "string",
            "description": "Телефон контактного лица",
            "required": "true"
          },
          "country_phone_id": {
            "type": "integer",
            "description": "Идентификатор страны телефона контактного лица. 0-Россия, 1-Украина, 2-Казахстан, 3-Беларусь, 4-Другие",
            "required": "true",
            "minimum": 0,
            "maximum": 4
          }
        },
        "required": [
          "name",
          "phone",
          "country_phone_id"
        ]
      },
      "Warehouse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Идентификатор склада"
          },
          "owner": {
            "type": "integer",
            "description": "Идентификатор фирмы владельца склада"
          },
          "country_id": {
            "type": "integer",
            "description": "Идентификатор страны. Ему соответствует название страны из [словаря](https://ati.su/developers/api/dictionaries/geo/)"
          },
          "region_id": {
            "type": "integer",
            "description": "Идентификатор региона. Ему соответствует название региона из [словаря](https://ati.su/developers/api/dictionaries/geo/)"
          },
          "city_verbose": {
            "type": "string",
            "description": "Название города"
          },
          "utc_offset": {
            "type": "integer",
            "description": "Количество минут, на которые время склада отличается от UTC"
          },
          "date_creation": {
            "type": "string",
            "description": "Дата создания склада"
          },
          "date_modified": {
            "type": "string",
            "description": "Дата изменения склада"
          },
          "deleted": {
            "type": "boolean",
            "description": "Флаг, показывающий удален склад или нет"
          },
          "is_test": {
            "type": "boolean",
            "description": "Флаг, показывающий является ли склад тестовым"
          },
          "name": {
            "type": "string",
            "description": "Название склада"
          },
          "address": {
            "type": "string",
            "description": "Адрес склада"
          },
          "city_id": {
            "type": "integer",
            "description": "Идентификатор города. Ему соответствует название города из [словаря](https://ati.su/developers/api/dictionaries/geo/)"
          },
          "contacts": {
            "type": "array",
            "description": "Контакты контактного лица/лиц склада",
            "items": {
              "$ref": "#/components/schemas/WarehouseContact"
            }
          },
          "schedule": {
            "type": "array",
            "description": "Список рабочих дней склада",
            "items": {
              "$ref": "#/components/schemas/ScheduleItem"
            }
          }
        }
      },
      "WarehouseWorkloadItem": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "weekday": {
            "$ref": "#/components/schemas/DayOfWeek"
          },
          "possible_slots_count": {
            "type": "integer"
          },
          "available_slots_count": {
            "type": "integer"
          },
          "loading_level": {
            "type": "string",
            "enum": [
              "low",
              "middle",
              "high"
            ]
          }
        }
      },
      "SingleError": {
        "description": "Одиночная ошибка",
        "properties": {
          "error": {
            "description": "Текстовый код ошибки",
            "type": "string"
          },
          "reason": {
            "description": "Человекочитаемый текст ошибки",
            "type": "string"
          }
        }
      },
      "MultipleError": {
        "type": "object",
        "description": "Множественная ошибка",
        "properties": {
          "error": {
            "description": "Текстовый код ошибки",
            "type": "string"
          },
          "reason": {
            "description": "Человекочитаемый текст ошибки",
            "type": "string"
          },
          "error_list": {
            "description": "Список возникших ошибок",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SingleError"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Authorization: Bearer {authorizationToken}"
      }
    }
  }
}