{
  "openapi": "3.0.0",
  "info": {
    "title": "api/dictionaries/trucks",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "/"
    },
    {
      "url": "https://api.ati.su"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/v1.0/dictionaries/carTypes": {
      "get": {
        "tags": [
          "Справочники"
        ],
        "summary": "Получение списка кузовов",
        "operationId": "Dictionaries_CarTypesAll",
        "responses": {
          "200": {
            "description": "Типы кузовов",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CarType"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/dictionaries/loadingTypes": {
      "get": {
        "tags": [
          "Справочники"
        ],
        "summary": "Получение списка вариантов загрузки",
        "operationId": "Dictionaries_LoadingTypesAll",
        "responses": {
          "200": {
            "description": "Варианты загрузки",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LoadingType"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/dictionaries/currencyTypes": {
      "get": {
        "tags": [
          "Справочники"
        ],
        "summary": "Получение списка валют",
        "operationId": "Dictionaries_CurrencyTypesAll",
        "responses": {
          "200": {
            "description": "Список валют",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StrippedCurrencyTypeModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/dictionaries/moneyTypes": {
      "get": {
        "tags": [
          "Справочники"
        ],
        "summary": "Получение списка вариантов оплаты",
        "operationId": "Dictionaries_MoneyTypesAll",
        "responses": {
          "200": {
            "description": "Список вариантов оплаты",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MoneyType"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1.0/dictionaries/truck_access_denied_reasons": {
      "get": {
        "tags": [
          "Справочники"
        ],
        "summary": "Получение списка пояснений к отказу в доступе к работе с машинами",
        "operationId": "Dictionaries_TruckAccessDeniedReasons",
        "responses": {
          "200": {
            "description": "Пояснения к отказу в доступе к работе с машинами",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BaseDictionaryType": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Id": {
            "type": "integer",
            "description": "Id",
            "format": "int64"
          },
          "Id2": {
            "type": "string",
            "description": "Guid",
            "format": "guid"
          },
          "Name": {
            "type": "string",
            "description": "Название"
          }
        }
      },
      "CarType": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseDictionaryType"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "Attribs": {
                "type": "integer",
                "description": "Атрибут",
                "format": "int32"
              },
              "Position": {
                "type": "integer",
                "description": "Позиция",
                "format": "int32"
              },
              "TypeId": {
                "type": "integer",
                "description": "Тип",
                "format": "int32"
              },
              "NameEng": {
                "type": "string",
                "description": "Название на английском"
              },
              "ShortName": {
                "type": "string",
                "description": "Короткое название"
              },
              "ShortNameEng": {
                "type": "string",
                "description": "Короткое название на английском"
              }
            }
          }
        ]
      },
      "LoadingType": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseDictionaryType"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "NameEng": {
                "type": "string",
                "description": "Название на английском"
              },
              "ShortName": {
                "type": "string",
                "description": "Короткое название"
              },
              "ShortNameEng": {
                "type": "string",
                "description": "Короткое название на английском"
              }
            }
          }
        ]
      },
      "StrippedCurrencyTypeModel": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "Name": {
            "type": "string",
            "description": "Название"
          },
          "NameEng": {
            "type": "string",
            "description": "Название на английском"
          },
          "Id": {
            "type": "integer",
            "description": "Id",
            "format": "int64"
          },
          "Id2": {
            "type": "string",
            "format": "guid"
          },
          "Modifier": {
            "type": "integer",
            "description": "Модификатор порядка валюты. Например, для ТЫС.РУБ - 1000, для РУБ - 1",
            "format": "int32"
          },
          "CurrencyIdPerKm": {
            "type": "integer",
            "description": "ссылка на эту же валюту, только за км. Например, РУБ -&gt; РУБ/КМ",
            "format": "int32",
            "nullable": true
          },
          "Iso4217Code": {
            "type": "string",
            "description": "Буквенный код валюты Iso4217"
          },
          "Iso4217DigitalCode": {
            "type": "integer",
            "description": "Численный код валюты Iso4217",
            "format": "int32"
          }
        }
      },
      "MoneyType": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseDictionaryType"
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "NameEng": {
                "type": "string",
                "description": "Название на английском"
              }
            }
          }
        ]
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Authorization: Bearer {authorizationToken}"
      }
    }
  }
}