{
  "openapi": "3.0.1",
  "info": {
    "title": "api/dictionaries/firm-documents",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/"
    },
    {
      "url": "https://api.ati.su"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/gw/marshak/v1/dictionaries/firm_documents_template": {
      "get": {
        "tags": [
          "firm_documents_template"
        ],
        "summary": "Получение словаря firm_documents_template",
        "description": "Типы документов фирмы: свидетельства, лицензии, договоры и другие документы, которые фирма прикладывает к своему профилю",
        "operationId": "getPublicDictionary_firm_documents_template",
        "parameters": [
          {
            "name": "locale",
            "in": "query",
            "description": "Локаль значений полей. Доступные варианты: ru, en, kk, ky, uz, hy",
            "schema": {
              "type": "string",
              "example": "ru"
            },
            "example": "ru"
          }
        ],
        "responses": {
          "200": {
            "description": "Элементы словаря firm_documents_template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/firm_documents_templateResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "firm_documents_templateResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/firm_documents_templateItem"
        },
        "description": "Типы документов фирмы: свидетельства, лицензии, договоры и другие документы, которые фирма прикладывает к своему профилю",
        "example": [
          {
            "dictionary_item_id": 1,
            "attributes": {
              "template_name": "Лицензия"
            }
          }
        ]
      },
      "firm_documents_templateItem": {
        "type": "object",
        "properties": {
          "dictionary_item_id": {
            "type": "integer",
            "description": "Идентификатор элемента словаря",
            "example": 1
          },
          "attributes": {
            "allOf": [
              {
                "$ref": "#/components/schemas/firm_documents_templateAttributes"
              }
            ],
            "description": "Поля элемента: ключ — имя поля, значение — строка"
          }
        },
        "description": "Элемент словаря firm_documents_template"
      },
      "firm_documents_templateAttributes": {
        "type": "object",
        "properties": {
          "template_name": {
            "type": "string",
            "description": "Название типа документа",
            "example": "Лицензия"
          }
        },
        "description": "Поля элемента словаря firm_documents_template"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Authorization: Bearer {authorizationToken}"
      }
    }
  }
}