83979 lines
2.8 MiB
83979 lines
2.8 MiB
openapi: 3.0.3
|
||
info:
|
||
title: WANITIL API
|
||
version: 1.0.0
|
||
description: 'REST API WANITIL. Все даты передаются в ISO 8601 с часовым поясом.
|
||
Защищённые методы требуют `Authorization: Token <token>`.'
|
||
paths:
|
||
/api/v1/client/adr/areas/:
|
||
get:
|
||
operationId: api_v1_client_adr_areas_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 24. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.adr_country.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.adr_country.id`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.adr_country.id`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.adr_country.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.adr_country.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrAreaClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список районы
|
||
/api/v1/client/adr/areas/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_areas_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the area
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrAreaClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить районы
|
||
/api/v1/client/adr/house-types/:
|
||
get:
|
||
operationId: api_v1_client_adr_house_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 8. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: shortname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: точное совпадение.'
|
||
- in: query
|
||
name: shortname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrHouseTypeClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы домов
|
||
/api/v1/client/adr/house-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_house_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house type
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseTypeClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы домов
|
||
/api/v1/client/adr/houses/:
|
||
get:
|
||
operationId: api_v1_client_adr_houses_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 51. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: address_sv__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `address_sv`: точное совпадение.'
|
||
- in: query
|
||
name: address_sv__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `address_sv`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_house_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_house_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_house_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.id`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.id`:
|
||
больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.id`:
|
||
меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.name`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.name`:
|
||
содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.id`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.id`:
|
||
больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.id`:
|
||
меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.name`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.name`:
|
||
содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.id`: больше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.id`: меньше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.name`: содержит
|
||
подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_zone__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrHouseClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список дома
|
||
/api/v1/client/adr/houses/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_houses_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить дома
|
||
/api/v1/client/adr/regions/:
|
||
get:
|
||
operationId: api_v1_client_adr_regions_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 19. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_country.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_country.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_country.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_country.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_country.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrRegionClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список регионы
|
||
/api/v1/client/adr/regions/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_regions_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the region
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegionClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить регионы
|
||
/api/v1/client/adr/street-types/:
|
||
get:
|
||
operationId: api_v1_client_adr_street_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 8. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: shortname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: точное совпадение.'
|
||
- in: query
|
||
name: shortname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrStreetTypeClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы улиц
|
||
/api/v1/client/adr/street-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_street_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street type
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetTypeClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы улиц
|
||
/api/v1/client/adr/streets/:
|
||
get:
|
||
operationId: api_v1_client_adr_streets_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 44. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: adr_street_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.id`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.id`:
|
||
больше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.id`:
|
||
меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.name`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.name`:
|
||
содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.id`: больше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.id`: меньше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.name`: содержит
|
||
подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_town__adr_area__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_town__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_town__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_zone__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrStreetClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список улицы
|
||
/api/v1/client/adr/streets/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_streets_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить улицы
|
||
/api/v1/client/adr/town-types/:
|
||
get:
|
||
operationId: api_v1_client_adr_town_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 8. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: shortname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: точное совпадение.'
|
||
- in: query
|
||
name: shortname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrTownTypeClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы населённых пунктов
|
||
/api/v1/client/adr/town-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_town_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town type
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownTypeClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы населённых пунктов
|
||
/api/v1/client/adr/towns/:
|
||
get:
|
||
operationId: api_v1_client_adr_towns_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 34. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.id`: точное
|
||
совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.id`: больше
|
||
или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.id`: меньше
|
||
или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.name`: точное
|
||
совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.name`: содержит
|
||
подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_area__adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_area__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_area__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_area__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_town_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_town_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrTownClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список населённые пункты
|
||
/api/v1/client/adr/towns/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_towns_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить населённые пункты
|
||
/api/v1/client/adr/zone-types/:
|
||
get:
|
||
operationId: api_v1_client_adr_zone_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 6. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrZoneTypeClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы зон
|
||
/api/v1/client/adr/zone-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_zone_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone type
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneTypeClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы зон
|
||
/api/v1/client/adr/zones/:
|
||
get:
|
||
operationId: api_v1_client_adr_zones_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 21. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: adr_house__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_house__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_house__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_street__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_zone_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_zone_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_zone_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrZoneClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список зоны
|
||
/api/v1/client/adr/zones/{id}/:
|
||
get:
|
||
operationId: api_v1_client_adr_zones_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить зоны
|
||
/api/v1/client/con/app-deliveries/:
|
||
get:
|
||
operationId: api_v1_client_con_app_deliveries_list
|
||
parameters:
|
||
- in: query
|
||
name: con_app_message__body__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_app_message.body`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__body__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_app_message.body`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: con_app_message__lifetime__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.lifetime`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__lifetime__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.lifetime`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__lifetime__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.lifetime`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__object_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.object_id`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__object_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.object_id`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__object_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.object_id`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__object_type__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.object_type`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__object_type__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.object_type`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__object_type__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.object_type`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__sys_user__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.sys_user.id`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__sys_user__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.sys_user.id`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__sys_user__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_app_message.sys_user.id`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__sys_user__username__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_app_message.sys_user.username`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__sys_user__username__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_app_message.sys_user.username`: содержит
|
||
подстроку без учёта регистра.'
|
||
- in: query
|
||
name: con_app_message__sysdatecreate__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `con_app_message.sysdatecreate`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__sysdatecreate__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `con_app_message.sysdatecreate`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__sysdatecreate__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `con_app_message.sysdatecreate`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: con_app_message__title__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_app_message.title`: точное совпадение.'
|
||
- in: query
|
||
name: con_app_message__title__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_app_message.title`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: con_app_message_sysdatecreate__gten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `con_app_message_sysdatecreate.gten`: сравнение
|
||
с текущим временем, смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: con_app_message_sysdatecreate__gtn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `con_app_message_sysdatecreate.gtn`: сравнение
|
||
с текущим временем, смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: con_app_message_sysdatecreate__lten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `con_app_message_sysdatecreate.lten`: сравнение
|
||
с текущим временем, смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: con_app_message_sysdatecreate__ltn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `con_app_message_sysdatecreate.ltn`: сравнение
|
||
с текущим временем, смещённым на указанное число секунд.'
|
||
- name: cursor
|
||
required: false
|
||
in: query
|
||
description: The pagination cursor value.
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: status__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `status`: точное совпадение.'
|
||
- in: query
|
||
name: status__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: больше или равно значению.'
|
||
- in: query
|
||
name: status__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: меньше или равно значению.'
|
||
- in: query
|
||
name: sys_user__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sys_user.id`: точное совпадение.'
|
||
- in: query
|
||
name: sys_user__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sys_user.id`: больше или равно значению.'
|
||
- in: query
|
||
name: sys_user__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sys_user.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: sys_user__username__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sys_user.username`: точное совпадение.'
|
||
- in: query
|
||
name: sys_user__username__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sys_user.username`: содержит подстроку без учёта
|
||
регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedConAppSendClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список уведомления
|
||
description: |-
|
||
Возвращает список ресурса «уведомления». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 37. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
/api/v1/client/con/app-deliveries/{id}/:
|
||
get:
|
||
operationId: api_v1_client_con_app_deliveries_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the app send
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConAppSendClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить уведомления
|
||
description: |-
|
||
Возвращает один объект ресурса «уведомления» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
/api/v1/client/con/app-deliveries/{id}/mark-read/:
|
||
post:
|
||
operationId: api_v1_client_con_app_deliveries_mark_read_create
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the app send
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Отметить сообщение прочитанным
|
||
description: |-
|
||
Идемпотентно отмечает доступное пользователю сообщение прочитанным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
/api/v1/client/con/app-deliveries/mark-all-read/:
|
||
post:
|
||
operationId: api_v1_client_con_app_deliveries_mark_all_read_create
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Отметить все сообщения прочитанными
|
||
description: |-
|
||
Идемпотентно отмечает все непросроченные сообщения пользователя прочитанными.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
/api/v1/client/con/app-deliveries/messages/:
|
||
post:
|
||
operationId: api_v1_client_con_app_deliveries_messages_create
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConAppMessageRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ConAppMessageRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ConAppMessageRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConAppMessageResponse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Отправить уведомление
|
||
description: |-
|
||
Отправляет типизированное уведомление выбранным активным пользователям. Повтор с тем же idempotency_key возвращает прежний результат без повторной отправки.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
/api/v1/client/con/app-deliveries/unread-count/:
|
||
get:
|
||
operationId: api_v1_client_con_app_deliveries_unread_count_retrieve
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConAppSendClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список unread count
|
||
description: |-
|
||
Возвращает список ресурса «unread count». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
/api/v1/client/con/contacts/:
|
||
get:
|
||
operationId: api_v1_client_con_contacts_list
|
||
description: |-
|
||
CRUD for contact points owned by the authenticated user's person.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 31. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: con_person__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_person.id`: точное совпадение.'
|
||
- in: query
|
||
name: con_person__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_person.id`: больше или равно значению.'
|
||
- in: query
|
||
name: con_person__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_person.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: con_person__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_person.name`: точное совпадение.'
|
||
- in: query
|
||
name: con_person__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_person.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: created_at__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `created_at`: точное совпадение.'
|
||
- in: query
|
||
name: created_at__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `created_at`: больше или равно значению.'
|
||
- in: query
|
||
name: created_at__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `created_at`: меньше или равно значению.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: is_active__exact
|
||
schema:
|
||
type: boolean
|
||
description: 'Фильтр по полю `is_active`: точное совпадение.'
|
||
- in: query
|
||
name: is_primary__exact
|
||
schema:
|
||
type: boolean
|
||
description: 'Фильтр по полю `is_primary`: точное совпадение.'
|
||
- in: query
|
||
name: is_verified__exact
|
||
schema:
|
||
type: boolean
|
||
description: 'Фильтр по полю `is_verified`: точное совпадение.'
|
||
- in: query
|
||
name: label__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `label`: точное совпадение.'
|
||
- in: query
|
||
name: label__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `label`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: normalized_value__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `normalized_value`: точное совпадение.'
|
||
- in: query
|
||
name: normalized_value__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `normalized_value`: содержит подстроку без учёта
|
||
регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: purpose__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `purpose`: точное совпадение.'
|
||
- in: query
|
||
name: purpose__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `purpose`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: type__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `type`: точное совпадение.'
|
||
- in: query
|
||
name: type__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `type`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: updated_at__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `updated_at`: точное совпадение.'
|
||
- in: query
|
||
name: updated_at__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `updated_at`: больше или равно значению.'
|
||
- in: query
|
||
name: updated_at__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `updated_at`: меньше или равно значению.'
|
||
- in: query
|
||
name: value__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `value`: точное совпадение.'
|
||
- in: query
|
||
name: value__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `value`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: verified_at__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `verified_at`: точное совпадение.'
|
||
- in: query
|
||
name: verified_at__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `verified_at`: больше или равно значению.'
|
||
- in: query
|
||
name: verified_at__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `verified_at`: меньше или равно значению.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedConContactClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список контактные данные
|
||
post:
|
||
operationId: api_v1_client_con_contacts_create
|
||
description: |-
|
||
CRUD for contact points owned by the authenticated user's person.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClientRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClientRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClientRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать контактные данные
|
||
/api/v1/client/con/contacts/{id}/:
|
||
get:
|
||
operationId: api_v1_client_con_contacts_retrieve
|
||
description: |-
|
||
CRUD for contact points owned by the authenticated user's person.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the contact
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить контактные данные
|
||
put:
|
||
operationId: api_v1_client_con_contacts_update
|
||
description: |-
|
||
CRUD for contact points owned by the authenticated user's person.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the contact
|
||
required: true
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClientRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClientRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClientRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить контактные данные
|
||
patch:
|
||
operationId: api_v1_client_con_contacts_partial_update
|
||
description: |-
|
||
CRUD for contact points owned by the authenticated user's person.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the contact
|
||
required: true
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedConContactClientRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedConContactClientRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedConContactClientRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ConContactClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить контактные данные
|
||
delete:
|
||
operationId: api_v1_client_con_contacts_destroy
|
||
description: |-
|
||
CRUD for contact points owned by the authenticated user's person.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the contact
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить контактные данные
|
||
/api/v1/client/crm/clients/:
|
||
get:
|
||
operationId: api_v1_client_crm_clients_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 68. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: assigned__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `assigned.id`: точное совпадение.'
|
||
- in: query
|
||
name: assigned__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `assigned.id`: больше или равно значению.'
|
||
- in: query
|
||
name: assigned__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `assigned.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: assigned__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `assigned.name`: точное совпадение.'
|
||
- in: query
|
||
name: assigned__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `assigned.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: assigned__sys_user__username__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `assigned.sys_user.username`: точное совпадение.'
|
||
- in: query
|
||
name: assigned__sys_user__username__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `assigned.sys_user.username`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: con_person__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_person.id`: точное совпадение.'
|
||
- in: query
|
||
name: con_person__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_person.id`: больше или равно значению.'
|
||
- in: query
|
||
name: con_person__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `con_person.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: con_person__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_person.name`: точное совпадение.'
|
||
- in: query
|
||
name: con_person__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `con_person.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: crm_category__color__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_category.color`: точное совпадение.'
|
||
- in: query
|
||
name: crm_category__color__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_category.color`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: crm_category__description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_category.description`: точное совпадение.'
|
||
- in: query
|
||
name: crm_category__description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_category.description`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: crm_category__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_category.id`: точное совпадение.'
|
||
- in: query
|
||
name: crm_category__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_category.id`: больше или равно значению.'
|
||
- in: query
|
||
name: crm_category__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_category.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: crm_category__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_category.name`: точное совпадение.'
|
||
- in: query
|
||
name: crm_category__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_category.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: crm_type__color__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_type.color`: точное совпадение.'
|
||
- in: query
|
||
name: crm_type__color__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_type.color`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: crm_type__description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_type.description`: точное совпадение.'
|
||
- in: query
|
||
name: crm_type__description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_type.description`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: crm_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: crm_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: crm_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: crm_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: crm_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_type.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: email__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `email`: точное совпадение.'
|
||
- in: query
|
||
name: email__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `email`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: firstname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `firstname`: точное совпадение.'
|
||
- in: query
|
||
name: firstname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `firstname`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: flat__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `flat`: точное совпадение.'
|
||
- in: query
|
||
name: flat__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `flat`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: fullname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `fullname`: точное совпадение.'
|
||
- in: query
|
||
name: fullname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `fullname`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: house_extid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_extid`: точное совпадение.'
|
||
- in: query
|
||
name: house_extid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_extid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: house_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `house_id`: точное совпадение.'
|
||
- in: query
|
||
name: house_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `house_id`: больше или равно значению.'
|
||
- in: query
|
||
name: house_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `house_id`: меньше или равно значению.'
|
||
- in: query
|
||
name: house_name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_name`: точное совпадение.'
|
||
- in: query
|
||
name: house_name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_name`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: phone__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `phone`: точное совпадение.'
|
||
- in: query
|
||
name: phone__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `phone`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: secondname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `secondname`: точное совпадение.'
|
||
- in: query
|
||
name: secondname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `secondname`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: surname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `surname`: точное совпадение.'
|
||
- in: query
|
||
name: surname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `surname`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: sys_user__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sys_user.id`: точное совпадение.'
|
||
- in: query
|
||
name: sys_user__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sys_user.id`: больше или равно значению.'
|
||
- in: query
|
||
name: sys_user__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sys_user.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: sys_user__username__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sys_user.username`: точное совпадение.'
|
||
- in: query
|
||
name: sys_user__username__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sys_user.username`: содержит подстроку без учёта
|
||
регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedCrmClientClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список клиенты
|
||
/api/v1/client/crm/clients/{id}/:
|
||
get:
|
||
operationId: api_v1_client_crm_clients_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the CRM client
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/CrmClientClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить клиенты
|
||
/api/v1/client/crm/clients/me/:
|
||
get:
|
||
operationId: api_v1_client_crm_clients_me_retrieve
|
||
description: |-
|
||
Возвращает CRM-карточку, связанную с текущим пользователем.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Текущий CRM-клиент
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/CrmClientClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/crm/clients/me/contracts/:
|
||
get:
|
||
operationId: api_v1_client_crm_clients_me_contracts_list
|
||
description: |-
|
||
Возвращает договоры CRM-карточки, связанной с текущим пользователем.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Договоры текущего CRM-клиента
|
||
parameters:
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedCrmContractClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/crm/contracts/:
|
||
get:
|
||
operationId: api_v1_client_crm_contracts_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 31. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: crm_client__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_client.id`: точное совпадение.'
|
||
- in: query
|
||
name: crm_client__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_client.id`: больше или равно значению.'
|
||
- in: query
|
||
name: crm_client__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `crm_client.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: crm_client__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_client.name`: точное совпадение.'
|
||
- in: query
|
||
name: crm_client__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `crm_client.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: date_begin__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_begin`: точное совпадение.'
|
||
- in: query
|
||
name: date_begin__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_begin`: больше или равно значению.'
|
||
- in: query
|
||
name: date_begin__gten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_begin.gten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_begin__gtn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_begin.gtn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_begin__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_begin`: меньше или равно значению.'
|
||
- in: query
|
||
name: date_begin__lten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_begin.lten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_begin__ltn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_begin.ltn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: точное совпадение.'
|
||
- in: query
|
||
name: date_end__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: больше или равно значению.'
|
||
- in: query
|
||
name: date_end__gten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.gten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__gtn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.gtn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: меньше или равно значению.'
|
||
- in: query
|
||
name: date_end__lten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.lten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__ltn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.ltn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: точное совпадение.'
|
||
- in: query
|
||
name: description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: number__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `number`: точное совпадение.'
|
||
- in: query
|
||
name: number__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `number`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: status__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `status`: точное совпадение.'
|
||
- in: query
|
||
name: status__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `status`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedCrmContractClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список договоры
|
||
/api/v1/client/crm/contracts/{id}/:
|
||
get:
|
||
operationId: api_v1_client_crm_contracts_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the CRM contract
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/CrmContractClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить договоры
|
||
/api/v1/client/dsk/files/:
|
||
get:
|
||
operationId: api_v1_client_dsk_files_list
|
||
parameters:
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedDskFileList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список files
|
||
description: |-
|
||
Возвращает список ресурса «files». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_client_dsk_files_create
|
||
tags:
|
||
- api
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskFileUploadRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/DskFileUploadRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/DskFileUploadRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskFile'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать files
|
||
description: |-
|
||
Создаёт объект ресурса «files». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/client/dsk/files/{id}/:
|
||
get:
|
||
operationId: api_v1_client_dsk_files_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this dsk file.
|
||
required: true
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskFile'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить files
|
||
description: |-
|
||
Возвращает один объект ресурса «files» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_client_dsk_files_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this dsk file.
|
||
required: true
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить files
|
||
description: |-
|
||
Удаляет объект ресурса «files». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/client/dsk/files/{id}/access/:
|
||
get:
|
||
operationId: api_v1_client_dsk_files_access_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this dsk file.
|
||
required: true
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAccessList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить access
|
||
description: |-
|
||
Возвращает один объект ресурса «access» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_client_dsk_files_access_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this dsk file.
|
||
required: true
|
||
tags:
|
||
- api
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAccessListRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAccessListRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAccessListRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAccessList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить access
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «access». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/client/dsk/files/{id}/attachments/:
|
||
post:
|
||
operationId: api_v1_client_dsk_files_attachments_create
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this dsk file.
|
||
required: true
|
||
tags:
|
||
- api
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAttachRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAttachRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAttachRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskAttachment'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Выполнить операцию с attachments
|
||
description: |-
|
||
Выполняет операцию POST для ресурса «attachments».
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/client/dsk/files/{id}/attachments/{attachment_id}/:
|
||
delete:
|
||
operationId: api_v1_client_dsk_files_attachments_destroy
|
||
parameters:
|
||
- in: path
|
||
name: attachment_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this dsk file.
|
||
required: true
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить attachments
|
||
description: |-
|
||
Удаляет объект ресурса «attachments». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/client/dsk/files/{id}/download/:
|
||
get:
|
||
operationId: api_v1_client_dsk_files_download_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this dsk file.
|
||
required: true
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/DskFile'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить download
|
||
description: |-
|
||
Возвращает один объект ресурса «download» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/client/me/capabilities/:
|
||
get:
|
||
operationId: api_v1_client_me_capabilities_retrieve
|
||
description: |-
|
||
Возвращает только доступные клиенту модули, объекты и действия. Ответ предназначен для построения меню клиентского интерфейса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Доступная клиенту навигация
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/CapabilitiesResponse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/me/permissions/:
|
||
get:
|
||
operationId: api_v1_client_me_permissions_retrieve
|
||
summary: Эффективные разрешения текущего клиента
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PermissionsResponse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает список ресурса «permissions». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/client/req/comments/:
|
||
get:
|
||
operationId: api_v1_client_req_comments_list
|
||
description: |-
|
||
Client append-only collection with list and detail reads.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 3. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: req_request__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `req_request.id`: точное совпадение.'
|
||
- in: query
|
||
name: text__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `text`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqCommentClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список комментарии
|
||
post:
|
||
operationId: api_v1_client_req_comments_create
|
||
description: |-
|
||
Client append-only collection with list and detail reads.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqCommentClientRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqCommentClientRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqCommentClientRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqCommentClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать комментарии
|
||
/api/v1/client/req/comments/{id}/:
|
||
get:
|
||
operationId: api_v1_client_req_comments_retrieve
|
||
description: |-
|
||
Client append-only collection with list and detail reads.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request comment
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqCommentClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить комментарии
|
||
/api/v1/client/req/criticalities/:
|
||
get:
|
||
operationId: api_v1_client_req_criticalities_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 2. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqCriticalityClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список критичности
|
||
/api/v1/client/req/criticalities/{id}/:
|
||
get:
|
||
operationId: api_v1_client_req_criticalities_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request criticality
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqCriticalityClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить критичности
|
||
/api/v1/client/req/requests/:
|
||
get:
|
||
operationId: api_v1_client_req_requests_list
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 10. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: dateclose__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `dateclose`: больше или равно значению.'
|
||
- in: query
|
||
name: dateclose__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `dateclose`: меньше или равно значению.'
|
||
- in: query
|
||
name: datecreate__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `datecreate`: больше или равно значению.'
|
||
- in: query
|
||
name: datecreate__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `datecreate`: меньше или равно значению.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: ordering
|
||
schema:
|
||
type: string
|
||
description: 'Сортировка: id, sysdatecreate, datecreate, dateclose. Префикс
|
||
`-` задаёт убывание.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: req_criticality__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `req_criticality.id`: точное совпадение.'
|
||
- in: query
|
||
name: req_status__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `req_status.id`: точное совпадение.'
|
||
- in: query
|
||
name: request_type_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `request_type_id`: точное совпадение.'
|
||
- in: query
|
||
name: search
|
||
schema:
|
||
type: string
|
||
description: Поиск по тексту, услуге, решению или ID.
|
||
- in: query
|
||
name: service_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `service_id`: точное совпадение.'
|
||
- in: query
|
||
name: service_type_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `service_type_id`: точное совпадение.'
|
||
- in: query
|
||
name: state
|
||
schema:
|
||
type: string
|
||
enum:
|
||
- active
|
||
- closed
|
||
- created
|
||
description: Состояние заявок текущего клиента.
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqRequestClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список заявки
|
||
post:
|
||
operationId: api_v1_client_req_requests_create
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClientRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClientRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClientRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать заявки
|
||
/api/v1/client/req/requests/{id}/:
|
||
get:
|
||
operationId: api_v1_client_req_requests_retrieve
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить заявки
|
||
put:
|
||
operationId: api_v1_client_req_requests_update
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request
|
||
required: true
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClientRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClientRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClientRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить заявки
|
||
patch:
|
||
operationId: api_v1_client_req_requests_partial_update
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request
|
||
required: true
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedReqRequestClientRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedReqRequestClientRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedReqRequestClientRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить заявки
|
||
/api/v1/client/req/requests/{id}/available-transitions/:
|
||
get:
|
||
operationId: api_v1_client_req_requests_available_transitions_list
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Доступные клиенту переходы статуса
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request
|
||
required: true
|
||
- name: ordering
|
||
required: false
|
||
in: query
|
||
description: Which field to use when ordering the results.
|
||
schema:
|
||
type: string
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqStatusTransitClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/req/requests/{id}/comments/:
|
||
get:
|
||
operationId: api_v1_client_req_requests_comments_list
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Комментарии клиентской заявки
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request
|
||
required: true
|
||
- name: ordering
|
||
required: false
|
||
in: query
|
||
description: Which field to use when ordering the results.
|
||
schema:
|
||
type: string
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqCommentClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
post:
|
||
operationId: api_v1_client_req_requests_comments_create
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Добавить комментарий к клиентской заявке
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request
|
||
required: true
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedClientReqCommentRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedClientReqCommentRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedClientReqCommentRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqCommentClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/req/requests/{id}/transitions/:
|
||
post:
|
||
operationId: api_v1_client_req_requests_transitions_create
|
||
description: |-
|
||
Client resource that cannot be deleted through the CRUD detail route.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Изменить статус клиентской заявки
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request
|
||
required: true
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ClientReqStatusTransitionRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ClientReqStatusTransitionRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ClientReqStatusTransitionRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqRequestClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/req/source-types/:
|
||
get:
|
||
operationId: api_v1_client_req_source_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 2. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqSourceTypeClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список источники
|
||
/api/v1/client/req/source-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_req_source_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request source type
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqSourceTypeClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить источники
|
||
/api/v1/client/req/status-transitions/:
|
||
get:
|
||
operationId: api_v1_client_req_status_transitions_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 3. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: req_status_from__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `req_status_from.id`: точное совпадение.'
|
||
- in: query
|
||
name: req_status_to__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `req_status_to.id`: точное совпадение.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqStatusTransitClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список переходы статусов
|
||
/api/v1/client/req/status-transitions/{id}/:
|
||
get:
|
||
operationId: api_v1_client_req_status_transitions_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request status transition
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqStatusTransitClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить переходы статусов
|
||
/api/v1/client/req/statuses/:
|
||
get:
|
||
operationId: api_v1_client_req_statuses_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 2. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedReqStatusClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список статусы
|
||
/api/v1/client/req/statuses/{id}/:
|
||
get:
|
||
operationId: api_v1_client_req_statuses_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request status
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ReqStatusClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить статусы
|
||
/api/v1/client/sla/request-history-calculations/:
|
||
get:
|
||
operationId: api_v1_client_sla_request_history_calculations_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 43. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: date_calc__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_calc`: точное совпадение.'
|
||
- in: query
|
||
name: date_calc__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_calc`: больше или равно значению.'
|
||
- in: query
|
||
name: date_calc__gten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.gten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_calc__gtn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.gtn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_calc__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_calc`: меньше или равно значению.'
|
||
- in: query
|
||
name: date_calc__lten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.lten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_calc__ltn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.ltn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: точное совпадение.'
|
||
- in: query
|
||
name: date_end__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: больше или равно значению.'
|
||
- in: query
|
||
name: date_end__gten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.gten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__gtn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.gtn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: меньше или равно значению.'
|
||
- in: query
|
||
name: date_end__lten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.lten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__ltn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.ltn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: error__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `error`: точное совпадение.'
|
||
- in: query
|
||
name: error__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `error`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: last__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `last`: точное совпадение.'
|
||
- in: query
|
||
name: last__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `last`: больше или равно значению.'
|
||
- in: query
|
||
name: last__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `last`: меньше или равно значению.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: passed__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `passed`: точное совпадение.'
|
||
- in: query
|
||
name: passed__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `passed`: больше или равно значению.'
|
||
- in: query
|
||
name: passed__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `passed`: меньше или равно значению.'
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: sla_request_agreement__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_agreement.id`: точное совпадение.'
|
||
- in: query
|
||
name: sla_request_agreement__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_agreement.id`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: sla_request_agreement__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_agreement.id`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: sla_request_agreement__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sla_request_agreement.name`: точное совпадение.'
|
||
- in: query
|
||
name: sla_request_agreement__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sla_request_agreement.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: sla_request_hist__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_hist.id`: точное совпадение.'
|
||
- in: query
|
||
name: sla_request_hist__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_hist.id`: больше или равно значению.'
|
||
- in: query
|
||
name: sla_request_hist__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_hist.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: sla_request_hist__request_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_hist.request_id`: точное совпадение.'
|
||
- in: query
|
||
name: sla_request_hist__request_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_hist.request_id`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: sla_request_hist__request_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_hist.request_id`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: status__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: точное совпадение.'
|
||
- in: query
|
||
name: status__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: больше или равно значению.'
|
||
- in: query
|
||
name: status__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: меньше или равно значению.'
|
||
- in: query
|
||
name: type__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `type`: точное совпадение.'
|
||
- in: query
|
||
name: type__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `type`: больше или равно значению.'
|
||
- in: query
|
||
name: type__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `type`: меньше или равно значению.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSlaRequestHistCalcClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список request history calculations
|
||
/api/v1/client/sla/request-history-calculations-total/:
|
||
get:
|
||
operationId: api_v1_client_sla_request_history_calculations_total_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 40. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: date_calc__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_calc`: точное совпадение.'
|
||
- in: query
|
||
name: date_calc__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_calc`: больше или равно значению.'
|
||
- in: query
|
||
name: date_calc__gten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.gten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_calc__gtn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.gtn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_calc__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_calc`: меньше или равно значению.'
|
||
- in: query
|
||
name: date_calc__lten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.lten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_calc__ltn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_calc.ltn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__exact
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: точное совпадение.'
|
||
- in: query
|
||
name: date_end__gte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: больше или равно значению.'
|
||
- in: query
|
||
name: date_end__gten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.gten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__gtn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.gtn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__lte
|
||
schema:
|
||
type: string
|
||
format: date-time
|
||
description: 'Фильтр по полю `date_end`: меньше или равно значению.'
|
||
- in: query
|
||
name: date_end__lten
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.lten`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: date_end__ltn
|
||
schema:
|
||
type: integer
|
||
description: 'Фильтр по полю `date_end.ltn`: сравнение с текущим временем,
|
||
смещённым на указанное число секунд.'
|
||
- in: query
|
||
name: error__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `error`: точное совпадение.'
|
||
- in: query
|
||
name: error__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `error`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: last__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `last`: точное совпадение.'
|
||
- in: query
|
||
name: last__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `last`: больше или равно значению.'
|
||
- in: query
|
||
name: last__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `last`: меньше или равно значению.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: passed__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `passed`: точное совпадение.'
|
||
- in: query
|
||
name: passed__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `passed`: больше или равно значению.'
|
||
- in: query
|
||
name: passed__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `passed`: меньше или равно значению.'
|
||
- in: query
|
||
name: request_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `request_id`: точное совпадение.'
|
||
- in: query
|
||
name: request_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `request_id`: больше или равно значению.'
|
||
- in: query
|
||
name: request_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `request_id`: меньше или равно значению.'
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: sla_request_agreement__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_agreement.id`: точное совпадение.'
|
||
- in: query
|
||
name: sla_request_agreement__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_agreement.id`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: sla_request_agreement__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `sla_request_agreement.id`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: sla_request_agreement__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sla_request_agreement.name`: точное совпадение.'
|
||
- in: query
|
||
name: sla_request_agreement__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sla_request_agreement.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: status__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: точное совпадение.'
|
||
- in: query
|
||
name: status__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: больше или равно значению.'
|
||
- in: query
|
||
name: status__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status`: меньше или равно значению.'
|
||
- in: query
|
||
name: type__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `type`: точное совпадение.'
|
||
- in: query
|
||
name: type__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `type`: больше или равно значению.'
|
||
- in: query
|
||
name: type__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `type`: меньше или равно значению.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSlaRequestHistCalcTotalClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список request history calculations total
|
||
/api/v1/client/sla/request-history-calculations-total/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sla_request_history_calculations_total_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the total request SLA history calculation
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SlaRequestHistCalcTotalClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить request history calculations total
|
||
/api/v1/client/sla/request-history-calculations/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sla_request_history_calculations_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the request SLA history calculation
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SlaRequestHistCalcClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить request history calculations
|
||
/api/v1/client/srv/request-types/:
|
||
get:
|
||
operationId: api_v1_client_srv_request_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 13. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: точное совпадение.'
|
||
- in: query
|
||
name: description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: srv_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: srv_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: srv_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: srv_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: srv_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_type.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSrvRequestClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы заявок
|
||
/api/v1/client/srv/request-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_srv_request_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the service request
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SrvRequestClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы заявок
|
||
/api/v1/client/srv/requests/:
|
||
get:
|
||
operationId: api_v1_client_srv_requests_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 13. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: точное совпадение.'
|
||
- in: query
|
||
name: description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: srv_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: srv_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: srv_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: srv_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: srv_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_type.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSrvRequestClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список заявки
|
||
/api/v1/client/srv/requests/{id}/:
|
||
get:
|
||
operationId: api_v1_client_srv_requests_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the service request
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SrvRequestClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить заявки
|
||
/api/v1/client/srv/service-types/:
|
||
get:
|
||
operationId: api_v1_client_srv_service_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 8. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: точное совпадение.'
|
||
- in: query
|
||
name: description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSrvTypeClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы услуг
|
||
/api/v1/client/srv/service-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_srv_service_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the service type
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SrvTypeClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы услуг
|
||
/api/v1/client/srv/services/:
|
||
get:
|
||
operationId: api_v1_client_srv_services_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
|
||
Доступно фильтров: 55. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: ci_extid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `ci_extid`: точное совпадение.'
|
||
- in: query
|
||
name: ci_extid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `ci_extid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: ci_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `ci_id`: точное совпадение.'
|
||
- in: query
|
||
name: ci_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `ci_id`: больше или равно значению.'
|
||
- in: query
|
||
name: ci_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `ci_id`: меньше или равно значению.'
|
||
- in: query
|
||
name: ci_name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `ci_name`: точное совпадение.'
|
||
- in: query
|
||
name: ci_name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `ci_name`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: client_extid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `client_extid`: точное совпадение.'
|
||
- in: query
|
||
name: client_extid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `client_extid`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: client_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `client_id`: точное совпадение.'
|
||
- in: query
|
||
name: client_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `client_id`: больше или равно значению.'
|
||
- in: query
|
||
name: client_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `client_id`: меньше или равно значению.'
|
||
- in: query
|
||
name: client_name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `client_name`: точное совпадение.'
|
||
- in: query
|
||
name: client_name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `client_name`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: contract_extid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `contract_extid`: точное совпадение.'
|
||
- in: query
|
||
name: contract_extid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `contract_extid`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: contract_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `contract_id`: точное совпадение.'
|
||
- in: query
|
||
name: contract_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `contract_id`: больше или равно значению.'
|
||
- in: query
|
||
name: contract_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `contract_id`: меньше или равно значению.'
|
||
- in: query
|
||
name: contract_name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `contract_name`: точное совпадение.'
|
||
- in: query
|
||
name: contract_name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `contract_name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: точное совпадение.'
|
||
- in: query
|
||
name: description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: flat__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `flat`: точное совпадение.'
|
||
- in: query
|
||
name: flat__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `flat`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: house_extid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_extid`: точное совпадение.'
|
||
- in: query
|
||
name: house_extid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_extid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: house_id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `house_id`: точное совпадение.'
|
||
- in: query
|
||
name: house_id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `house_id`: больше или равно значению.'
|
||
- in: query
|
||
name: house_id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `house_id`: меньше или равно значению.'
|
||
- in: query
|
||
name: house_name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_name`: точное совпадение.'
|
||
- in: query
|
||
name: house_name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `house_name`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: srv_status__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_status.id`: точное совпадение.'
|
||
- in: query
|
||
name: srv_status__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_status.id`: больше или равно значению.'
|
||
- in: query
|
||
name: srv_status__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_status.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: srv_status__isactive__exact
|
||
schema:
|
||
type: boolean
|
||
description: 'Фильтр по полю `srv_status.isactive`: точное совпадение.'
|
||
- in: query
|
||
name: srv_status__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_status.name`: точное совпадение.'
|
||
- in: query
|
||
name: srv_status__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_status.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: srv_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: srv_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: srv_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: srv_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: srv_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_type.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSrvServiceClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список услуги
|
||
/api/v1/client/srv/services/{id}/:
|
||
get:
|
||
operationId: api_v1_client_srv_services_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the service
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SrvServiceClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить услуги
|
||
/api/v1/client/srv/solutions/:
|
||
get:
|
||
operationId: api_v1_client_srv_solutions_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 13. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: description__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: точное совпадение.'
|
||
- in: query
|
||
name: description__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `description`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: srv_request__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_request.id`: точное совпадение.'
|
||
- in: query
|
||
name: srv_request__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_request.id`: больше или равно значению.'
|
||
- in: query
|
||
name: srv_request__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `srv_request.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: srv_request__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_request.name`: точное совпадение.'
|
||
- in: query
|
||
name: srv_request__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `srv_request.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSrvSolutionClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список решения
|
||
/api/v1/client/srv/solutions/{id}/:
|
||
get:
|
||
operationId: api_v1_client_srv_solutions_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the service solution
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SrvSolutionClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить решения
|
||
/api/v1/client/sys/contact-types/:
|
||
get:
|
||
operationId: api_v1_client_sys_contact_types_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSysContactTypeClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список contact types
|
||
/api/v1/client/sys/contact-types/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sys_contact_types_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the contact type
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysContactTypeClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить contact types
|
||
/api/v1/client/sys/field-searches/:
|
||
get:
|
||
operationId: api_v1_client_sys_field_searches_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 12. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: sys_object__id__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sys_object.id`: точное совпадение.'
|
||
- in: query
|
||
name: sys_object__id__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `sys_object.id`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: type__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `type`: точное совпадение.'
|
||
- in: query
|
||
name: type__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `type`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: val__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `val`: точное совпадение.'
|
||
- in: query
|
||
name: val__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `val`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSysFieldSearchClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список field searches
|
||
/api/v1/client/sys/field-searches/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sys_field_searches_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the field search
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysFieldSearchClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить field searches
|
||
/api/v1/client/sys/fields/:
|
||
get:
|
||
operationId: api_v1_client_sys_fields_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSysFieldClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список fields
|
||
/api/v1/client/sys/fields/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sys_fields_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the system field
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysFieldClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить fields
|
||
/api/v1/client/sys/modules/:
|
||
get:
|
||
operationId: api_v1_client_sys_modules_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSysManagmentClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список modules
|
||
/api/v1/client/sys/modules/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sys_modules_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: string
|
||
description: Stable management identifier used by the permission system
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysManagmentClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить modules
|
||
/api/v1/client/sys/objects/:
|
||
get:
|
||
operationId: api_v1_client_sys_objects_list
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedSysObjectClientList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список objects
|
||
/api/v1/client/sys/objects/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sys_objects_retrieve
|
||
description: |-
|
||
Client resource that exposes only list and retrieve routes.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: string
|
||
pattern: ^[^/]+$
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysObjectClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить objects
|
||
/api/v1/client/sys/users/{id}/:
|
||
get:
|
||
operationId: api_v1_client_sys_users_retrieve
|
||
description: |-
|
||
Client self-service resource without a collection endpoint.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this пользователь.
|
||
required: true
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysUserClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить пользователи
|
||
/api/v1/client/sys/users/me/:
|
||
get:
|
||
operationId: api_v1_client_sys_users_me_retrieve
|
||
description: |-
|
||
Возвращает данные текущего пользователя клиентского API.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Текущий пользователь
|
||
tags:
|
||
- Client
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysUserClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/sys/users/me/updatepassword/:
|
||
post:
|
||
operationId: api_v1_client_sys_users_me_updatepassword_create
|
||
description: |-
|
||
Client self-service resource without a collection endpoint.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Изменить пароль текущего пользователя
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangePasswordRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangePasswordRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangePasswordRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysUserClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/client/sys/users/me/updateprofile/:
|
||
post:
|
||
operationId: api_v1_client_sys_users_me_updateprofile_create
|
||
description: |-
|
||
Client self-service resource without a collection endpoint.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Клиентский доступ изолирован: операция работает только с данными, связанными с текущей CRM-карточкой или текущим пользователем. Чужой объект не возвращается.
|
||
summary: Обновить профиль текущего пользователя
|
||
tags:
|
||
- Client
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/UpdateProfileRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/UpdateProfileRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/UpdateProfileRequestRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SysUserClient'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/login/:
|
||
post:
|
||
operationId: api_v1_login_create
|
||
description: 'Проверяет логин и пароль и создаёт Knox-токен на 15 минут. В защищённых
|
||
запросах используйте заголовок `Authorization: Token <token>`.'
|
||
summary: Авторизация
|
||
tags:
|
||
- api
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/LoginRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/LoginRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/LoginRequestRequest'
|
||
required: true
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/LoginResponse'
|
||
examples:
|
||
УспешнаяАвторизация:
|
||
value:
|
||
token: 03f7…
|
||
expiry: '2026-07-27T20:00:00Z'
|
||
summary: Успешная авторизация
|
||
description: ''
|
||
'400':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ErrorResponse'
|
||
description: Некорректный запрос.
|
||
'401':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ErrorResponse'
|
||
description: Неверные учётные данные.
|
||
'429':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ErrorResponse'
|
||
description: Слишком много попыток.
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/logout/:
|
||
post:
|
||
operationId: api_v1_logout_create
|
||
description: |-
|
||
Удаляет только Knox-токен из текущего заголовка Authorization.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Завершить текущую сессию
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/logoutall/:
|
||
post:
|
||
operationId: api_v1_logoutall_create
|
||
description: |-
|
||
Удаляет все Knox-токены текущего пользователя на всех устройствах.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Завершить все сессии
|
||
tags:
|
||
- api
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/adr/areas/:
|
||
get:
|
||
operationId: api_v1_main_adr_areas_list
|
||
parameters:
|
||
- in: query
|
||
name: adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.adr_country.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.adr_country.id`: больше или равно
|
||
значению.'
|
||
- in: query
|
||
name: adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.adr_country.id`: меньше или равно
|
||
значению.'
|
||
- in: query
|
||
name: adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.adr_country.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.adr_country.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_region.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_region.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrAreaList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список районы
|
||
description: |-
|
||
Возвращает список ресурса «районы». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 24. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_areas_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrAreaRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrAreaRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrAreaRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrArea'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать районы
|
||
description: |-
|
||
Создаёт объект ресурса «районы». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/areas/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_areas_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the area
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrArea'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить районы
|
||
description: |-
|
||
Возвращает один объект ресурса «районы» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_areas_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the area
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrAreaRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrAreaRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrAreaRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrArea'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить районы
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «районы». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_areas_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the area
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrAreaRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrAreaRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrAreaRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrArea'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить районы
|
||
description: |-
|
||
Частично обновляет объект ресурса «районы». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_areas_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the area
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить районы
|
||
description: |-
|
||
Удаляет объект ресурса «районы». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/areas/{id}/towns/:
|
||
get:
|
||
operationId: api_v1_main_adr_areas_towns_list
|
||
summary: Получить населённые пункты района
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the area
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrTownList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «населённые пункты» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_main_adr_areas_towns_create
|
||
description: |-
|
||
area_id автоматически берётся из URL.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Создать населённый пункт района
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the area
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrTownRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrTownRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrTownRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTown'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/adr/countries/:
|
||
get:
|
||
operationId: api_v1_main_adr_countries_list
|
||
parameters:
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrCountryList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список countries
|
||
description: |-
|
||
Возвращает список ресурса «countries». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 14. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_countries_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountryRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountryRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountryRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountry'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать countries
|
||
description: |-
|
||
Создаёт объект ресурса «countries». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/countries/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_countries_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the country
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountry'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить countries
|
||
description: |-
|
||
Возвращает один объект ресурса «countries» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_countries_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the country
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountryRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountryRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountryRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountry'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить countries
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «countries». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_countries_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the country
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrCountryRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrCountryRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrCountryRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrCountry'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить countries
|
||
description: |-
|
||
Частично обновляет объект ресурса «countries». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_countries_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the country
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить countries
|
||
description: |-
|
||
Удаляет объект ресурса «countries». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/countries/{id}/regions/:
|
||
get:
|
||
operationId: api_v1_main_adr_countries_regions_list
|
||
summary: Получить регионы страны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the country
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrRegionList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «регионы» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_main_adr_countries_regions_create
|
||
description: |-
|
||
country_id автоматически берётся из URL.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Создать регион страны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the country
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrRegionRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrRegionRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrRegionRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegion'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/adr/house-types/:
|
||
get:
|
||
operationId: api_v1_main_adr_house_types_list
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: shortname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: точное совпадение.'
|
||
- in: query
|
||
name: shortname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrHouseTypeList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы домов
|
||
description: |-
|
||
Возвращает список ресурса «типы домов». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 8. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_house_types_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать типы домов
|
||
description: |-
|
||
Создаёт объект ресурса «типы домов». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/house-types/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_house_types_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы домов
|
||
description: |-
|
||
Возвращает один объект ресурса «типы домов» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_house_types_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить типы домов
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «типы домов». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_house_types_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrHouseTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrHouseTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrHouseTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить типы домов
|
||
description: |-
|
||
Частично обновляет объект ресурса «типы домов». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_house_types_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить типы домов
|
||
description: |-
|
||
Удаляет объект ресурса «типы домов». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/houses/:
|
||
get:
|
||
operationId: api_v1_main_adr_houses_list
|
||
parameters:
|
||
- in: query
|
||
name: address_sv__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `address_sv`: точное совпадение.'
|
||
- in: query
|
||
name: address_sv__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `address_sv`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_house_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_house_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_house_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.id`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.id`:
|
||
больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.id`:
|
||
меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.name`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.adr_country.name`:
|
||
содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.id`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.id`:
|
||
больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.id`:
|
||
меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.name`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.adr_region.name`:
|
||
содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.id`: больше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.id`: меньше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__adr_area__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.adr_area.name`: содержит
|
||
подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__adr_town__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.adr_town.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__adr_town__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__adr_town__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.adr_town.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_street__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_zone__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrHouseList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список дома
|
||
description: |-
|
||
Возвращает список ресурса «дома». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 51. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_houses_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать дома
|
||
description: |-
|
||
Создаёт объект ресурса «дома». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/houses/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_houses_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить дома
|
||
description: |-
|
||
Возвращает один объект ресурса «дома» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_houses_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить дома
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «дома». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_houses_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrHouseRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrHouseRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrHouseRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить дома
|
||
description: |-
|
||
Частично обновляет объект ресурса «дома». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_houses_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить дома
|
||
description: |-
|
||
Удаляет объект ресурса «дома». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/houses/{id}/effective-zones/:
|
||
get:
|
||
operationId: api_v1_main_adr_houses_effective_zones_retrieve
|
||
description: |-
|
||
Прямая зона дома переопределяет зону улицы того же типа. effective содержит итоговую принадлежность.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Получить прямые, наследуемые и эффективные зоны дома
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouseEffectiveZonesResponse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/adr/houses/{id}/zones/{zone_id}/:
|
||
put:
|
||
operationId: api_v1_main_adr_houses_zones_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
- in: path
|
||
name: zone_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить зоны
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «зоны». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_houses_zones_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the house
|
||
required: true
|
||
- in: path
|
||
name: zone_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить зоны
|
||
description: |-
|
||
Удаляет объект ресурса «зоны». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/regions/:
|
||
get:
|
||
operationId: api_v1_main_adr_regions_list
|
||
parameters:
|
||
- in: query
|
||
name: adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_country.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_country.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_country.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_country.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_country.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrRegionList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список регионы
|
||
description: |-
|
||
Возвращает список ресурса «регионы». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 19. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_regions_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegionRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegionRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegionRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegion'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать регионы
|
||
description: |-
|
||
Создаёт объект ресурса «регионы». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/regions/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_regions_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the region
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegion'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить регионы
|
||
description: |-
|
||
Возвращает один объект ресурса «регионы» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_regions_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the region
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegionRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegionRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegionRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegion'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить регионы
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «регионы». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_regions_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the region
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrRegionRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrRegionRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrRegionRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrRegion'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить регионы
|
||
description: |-
|
||
Частично обновляет объект ресурса «регионы». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_regions_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the region
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить регионы
|
||
description: |-
|
||
Удаляет объект ресурса «регионы». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/regions/{id}/areas/:
|
||
get:
|
||
operationId: api_v1_main_adr_regions_areas_list
|
||
summary: Получить районы региона
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the region
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrAreaList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «районы» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_main_adr_regions_areas_create
|
||
description: |-
|
||
region_id автоматически берётся из URL.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Создать район региона
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the region
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrAreaRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrAreaRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrAreaRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrArea'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/adr/street-types/:
|
||
get:
|
||
operationId: api_v1_main_adr_street_types_list
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: shortname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: точное совпадение.'
|
||
- in: query
|
||
name: shortname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrStreetTypeList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы улиц
|
||
description: |-
|
||
Возвращает список ресурса «типы улиц». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 8. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_street_types_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать типы улиц
|
||
description: |-
|
||
Создаёт объект ресурса «типы улиц». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/street-types/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_street_types_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы улиц
|
||
description: |-
|
||
Возвращает один объект ресурса «типы улиц» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_street_types_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить типы улиц
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «типы улиц». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_street_types_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrStreetTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrStreetTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrStreetTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить типы улиц
|
||
description: |-
|
||
Частично обновляет объект ресурса «типы улиц». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_street_types_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить типы улиц
|
||
description: |-
|
||
Удаляет объект ресурса «типы улиц». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/streets/:
|
||
get:
|
||
operationId: api_v1_main_adr_streets_list
|
||
parameters:
|
||
- in: query
|
||
name: adr_street_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.id`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.id`:
|
||
больше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.id`:
|
||
меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.name`:
|
||
точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.adr_country.name`:
|
||
содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.id`: больше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.id`: меньше или
|
||
равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.adr_region.name`: содержит
|
||
подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_town__adr_area__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.adr_area.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town__adr_area__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__adr_area__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.adr_area.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_town__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_town__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_zone__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_zone__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrStreetList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список улицы
|
||
description: |-
|
||
Возвращает список ресурса «улицы». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 44. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_streets_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreet'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать улицы
|
||
description: |-
|
||
Создаёт объект ресурса «улицы». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/streets/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_streets_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreet'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить улицы
|
||
description: |-
|
||
Возвращает один объект ресурса «улицы» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_streets_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreetRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreet'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить улицы
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «улицы». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_streets_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrStreetRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrStreetRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrStreetRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreet'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить улицы
|
||
description: |-
|
||
Частично обновляет объект ресурса «улицы». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_streets_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить улицы
|
||
description: |-
|
||
Удаляет объект ресурса «улицы». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/streets/{id}/houses/:
|
||
get:
|
||
operationId: api_v1_main_adr_streets_houses_list
|
||
summary: Получить дома улицы
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrHouseList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «дома» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_main_adr_streets_houses_create
|
||
description: |-
|
||
street_id автоматически берётся из URL.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Создать дом на улице
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrHouseRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrHouseRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrHouseRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrHouse'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/adr/streets/{id}/zones/{zone_id}/:
|
||
put:
|
||
operationId: api_v1_main_adr_streets_zones_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
- in: path
|
||
name: zone_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreet'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить зоны
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «зоны». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_streets_zones_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the street
|
||
required: true
|
||
- in: path
|
||
name: zone_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить зоны
|
||
description: |-
|
||
Удаляет объект ресурса «зоны». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/town-types/:
|
||
get:
|
||
operationId: api_v1_main_adr_town_types_list
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: shortname__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: точное совпадение.'
|
||
- in: query
|
||
name: shortname__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `shortname`: содержит подстроку без учёта регистра.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrTownTypeList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы населённых пунктов
|
||
description: |-
|
||
Возвращает список ресурса «типы населённых пунктов». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 8. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_town_types_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать типы населённых пунктов
|
||
description: |-
|
||
Создаёт объект ресурса «типы населённых пунктов». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/town-types/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_town_types_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы населённых пунктов
|
||
description: |-
|
||
Возвращает один объект ресурса «типы населённых пунктов» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_town_types_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить типы населённых пунктов
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «типы населённых пунктов». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_town_types_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrTownTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrTownTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrTownTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить типы населённых пунктов
|
||
description: |-
|
||
Частично обновляет объект ресурса «типы населённых пунктов». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_town_types_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить типы населённых пунктов
|
||
description: |-
|
||
Удаляет объект ресурса «типы населённых пунктов». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/towns/:
|
||
get:
|
||
operationId: api_v1_main_adr_towns_list
|
||
parameters:
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.id`: точное
|
||
совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.id`: больше
|
||
или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.id`: меньше
|
||
или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.name`: точное
|
||
совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__adr_country__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.adr_country.name`: содержит
|
||
подстроку без учёта регистра.'
|
||
- in: query
|
||
name: adr_area__adr_region__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.adr_region.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_area__adr_region__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__adr_region__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.adr_region.name`: содержит подстроку
|
||
без учёта регистра.'
|
||
- in: query
|
||
name: adr_area__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_area__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_area.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_area__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_area__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_area.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_town_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_town_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_town_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_town_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_town_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_town_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: govid__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: точное совпадение.'
|
||
- in: query
|
||
name: govid__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `govid`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: lat__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: точное совпадение.'
|
||
- in: query
|
||
name: lat__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: больше или равно значению.'
|
||
- in: query
|
||
name: lat__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lat`: меньше или равно значению.'
|
||
- in: query
|
||
name: lon__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: точное совпадение.'
|
||
- in: query
|
||
name: lon__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: больше или равно значению.'
|
||
- in: query
|
||
name: lon__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `lon`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrTownList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список населённые пункты
|
||
description: |-
|
||
Возвращает список ресурса «населённые пункты». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 34. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_towns_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTown'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать населённые пункты
|
||
description: |-
|
||
Создаёт объект ресурса «населённые пункты». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/towns/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_towns_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTown'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить населённые пункты
|
||
description: |-
|
||
Возвращает один объект ресурса «населённые пункты» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_towns_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTownRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTown'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить населённые пункты
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «населённые пункты». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_towns_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrTownRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrTownRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrTownRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrTown'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить населённые пункты
|
||
description: |-
|
||
Частично обновляет объект ресурса «населённые пункты». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_towns_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить населённые пункты
|
||
description: |-
|
||
Удаляет объект ресурса «населённые пункты». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/towns/{id}/streets/:
|
||
get:
|
||
operationId: api_v1_main_adr_towns_streets_list
|
||
summary: Получить улицы населённого пункта
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrStreetList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «улицы» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_main_adr_towns_streets_create
|
||
description: |-
|
||
town_id автоматически берётся из URL.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Создать улицу населённого пункта
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the town
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrStreetRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrStreetRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/NestedAdrStreetRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrStreet'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/adr/zone-types/:
|
||
get:
|
||
operationId: api_v1_main_adr_zone_types_list
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrZoneTypeList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список типы зон
|
||
description: |-
|
||
Возвращает список ресурса «типы зон». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 6. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_zone_types_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать типы зон
|
||
description: |-
|
||
Создаёт объект ресурса «типы зон». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/zone-types/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_zone_types_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить типы зон
|
||
description: |-
|
||
Возвращает один объект ресурса «типы зон» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_zone_types_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить типы зон
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «типы зон». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_zone_types_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrZoneTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrZoneTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrZoneTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить типы зон
|
||
description: |-
|
||
Частично обновляет объект ресурса «типы зон». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_zone_types_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone type
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить типы зон
|
||
description: |-
|
||
Удаляет объект ресурса «типы зон». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/zones/:
|
||
get:
|
||
operationId: api_v1_main_adr_zones_list
|
||
parameters:
|
||
- in: query
|
||
name: adr_house__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_house__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_house.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_house__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_house__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_house.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_street__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_street__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_street.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_street__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_street__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_street.name`: содержит подстроку без учёта
|
||
регистра.'
|
||
- in: query
|
||
name: adr_zone_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: adr_zone_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `adr_zone_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: adr_zone_type__name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone_type.name`: точное совпадение.'
|
||
- in: query
|
||
name: adr_zone_type__name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `adr_zone_type.name`: содержит подстроку без
|
||
учёта регистра.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: точное совпадение.'
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `name`: содержит подстроку без учёта регистра.'
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrZoneList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список зоны
|
||
description: |-
|
||
Возвращает список ресурса «зоны». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 21. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
post:
|
||
operationId: api_v1_main_adr_zones_create
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZone'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать зоны
|
||
description: |-
|
||
Создаёт объект ресурса «зоны». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/zones/{id}/:
|
||
get:
|
||
operationId: api_v1_main_adr_zones_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZone'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить зоны
|
||
description: |-
|
||
Возвращает один объект ресурса «зоны» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_adr_zones_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZoneRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZone'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить зоны
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «зоны». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_adr_zones_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrZoneRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrZoneRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedAdrZoneRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/AdrZone'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить зоны
|
||
description: |-
|
||
Частично обновляет объект ресурса «зоны». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_adr_zones_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить зоны
|
||
description: |-
|
||
Удаляет объект ресурса «зоны». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/zones/{id}/houses/:
|
||
get:
|
||
operationId: api_v1_main_adr_zones_houses_list
|
||
summary: Получить дома зоны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrHouseList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «дома» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: adr_zone_houses_replace
|
||
summary: Полностью заменить дома зоны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SetZoneHousesRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/SetZoneHousesRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/SetZoneHousesRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrHouseList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «дома». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/zones/{id}/houses/{house_id}/:
|
||
put:
|
||
operationId: adr_zone_house_add
|
||
summary: Добавить или удалить дом зоны
|
||
parameters:
|
||
- in: path
|
||
name: house_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «дома». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: adr_zone_house_remove
|
||
summary: Удалить дом из зоны
|
||
parameters:
|
||
- in: path
|
||
name: house_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Удаляет объект ресурса «дома». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/zones/{id}/streets/:
|
||
get:
|
||
operationId: api_v1_main_adr_zones_streets_list
|
||
summary: Получить улицы зоны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrStreetList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «улицы» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: adr_zone_streets_replace
|
||
summary: Полностью заменить улицы зоны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
- name: page
|
||
required: false
|
||
in: query
|
||
description: A page number within the paginated result set.
|
||
schema:
|
||
type: integer
|
||
- name: page_size
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Main
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/SetZoneStreetsRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/SetZoneStreetsRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/SetZoneStreetsRequestRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedAdrStreetList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «улицы». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/adr/zones/{id}/streets/{street_id}/:
|
||
put:
|
||
operationId: adr_zone_street_add
|
||
summary: Добавить или удалить улицу зоны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
- in: path
|
||
name: street_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «улицы». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: adr_zone_street_remove
|
||
summary: Удалить улицу из зоны
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: Unique identifier of the zone
|
||
required: true
|
||
- in: path
|
||
name: street_id
|
||
schema:
|
||
type: string
|
||
pattern: ^[0-9]+$
|
||
required: true
|
||
tags:
|
||
- Main
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Удаляет объект ресурса «улицы». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/change-statuses/:
|
||
get:
|
||
operationId: api_v1_main_chn_change_statuses_list
|
||
description: |-
|
||
Возвращает системный справочник статусов только для чтения: `new`, `assessment`, `assessment_completed`, `pending_approval`, `rejected`, `approved`, `in_progress`, `review`, `review_completed`, `closed`, `cancelled`. Фильтрация доступна по полю `code`. Устаревший параметр `change_type__id__exact` принимается для совместимости и игнорируется, поскольку статусы больше не принадлежат отдельному типу изменения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Получить фиксированные статусы изменений
|
||
parameters:
|
||
- in: query
|
||
name: change_type__id__exact
|
||
schema:
|
||
type: integer
|
||
description: Устаревший параметр совместимости; значение игнорируется.
|
||
deprecated: true
|
||
- in: query
|
||
name: code__contains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__endswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__exact
|
||
schema:
|
||
type: string
|
||
x-spec-enum-id: 6b1f3000f75e59b0
|
||
enum:
|
||
- approved
|
||
- assessment
|
||
- assessment_completed
|
||
- cancelled
|
||
- closed
|
||
- in_progress
|
||
- new
|
||
- pending
|
||
- pending_approval
|
||
- rejected
|
||
- review
|
||
- review_completed
|
||
description: |-
|
||
* `new` - Created
|
||
* `assessment` - Under assessment
|
||
* `assessment_completed` - Assessment completed
|
||
* `pending_approval` - Pending approval
|
||
* `rejected` - Rejected
|
||
* `approved` - Authorized / Scheduled
|
||
* `pending` - Pending
|
||
* `in_progress` - In progress
|
||
* `review` - Review
|
||
* `review_completed` - Review completed
|
||
* `closed` - Closed
|
||
* `cancelled` - Cancelled
|
||
- in: query
|
||
name: code__icontains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__iendswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__iexact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: string
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: code__iregex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: code__istartswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__regex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__startswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: id__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: id__lt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__range
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: is_active__exact
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: is_active__isnull
|
||
schema:
|
||
type: boolean
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: name__contains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__endswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iendswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iexact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: string
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: name__iregex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: name__istartswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__regex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__startswith
|
||
schema:
|
||
type: string
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedChangeStatusList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/change-statuses/{id}/:
|
||
get:
|
||
operationId: api_v1_main_chn_change_statuses_retrieve
|
||
description: |-
|
||
Статус является системным: изменение и удаление через API запрещены.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Получить фиксированный статус изменения
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change status.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeStatus'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/change-types/:
|
||
get:
|
||
operationId: api_v1_main_chn_change_types_list
|
||
description: |-
|
||
Возвращает типы изменений с настройками обязательной оценки, согласования, планирования и проверки, типами автоматически создаваемых задач и списком согласующих.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Получить типы изменений
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: id__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: id__lt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__range
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: is_active__exact
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: is_active__isnull
|
||
schema:
|
||
type: boolean
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: name__contains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__endswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iendswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iexact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: string
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: name__iregex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: name__istartswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__regex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__startswith
|
||
schema:
|
||
type: string
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedChangeTypeList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
post:
|
||
operationId: api_v1_main_chn_change_types_create
|
||
description: |-
|
||
Создаёт тип и его настройки процесса. Флаги `requires_assessment`, `requires_approval`, `requires_planning`, `requires_testing` управляют обязательными этапами. При обязательной оценке требуется `assessment_task_type`, при обязательной проверке — `testing_task_type`. `approvers` — список ID сотрудников, решение каждого из которых обязательно. Одновременно автоматически создаются системные блоки `input`, `positive_output` и `negative_output`.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Создать тип изменения
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeTypeRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/change-types/{id}/:
|
||
get:
|
||
operationId: api_v1_main_chn_change_types_retrieve
|
||
summary: Получить тип изменения
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change type.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «change types» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_chn_change_types_update
|
||
summary: Заменить настройки типа изменения
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change type.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeTypeRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «change types». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_chn_change_types_partial_update
|
||
summary: Изменить настройки типа изменения
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change type.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChangeTypeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChangeTypeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChangeTypeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeType'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Частично обновляет объект ресурса «change types». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_chn_change_types_destroy
|
||
summary: Удалить тип изменения
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change type.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Удаляет объект ресурса «change types». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/changes/:
|
||
get:
|
||
operationId: api_v1_main_chn_changes_list
|
||
description: |-
|
||
Возвращает изменения с задачами, согласованиями и запусками блоков процесса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
|
||
Доступно фильтров: 16. Полный перечень, типы значений и операции сравнения приведены в разделе query-параметров ниже.
|
||
summary: Получить изменения
|
||
parameters:
|
||
- in: query
|
||
name: change_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: change_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: change_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- in: query
|
||
name: initiator__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `initiator.id`: точное совпадение.'
|
||
- in: query
|
||
name: initiator__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `initiator.id`: больше или равно значению.'
|
||
- in: query
|
||
name: initiator__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `initiator.id`: меньше или равно значению.'
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: responsible__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `responsible.id`: точное совпадение.'
|
||
- in: query
|
||
name: responsible__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `responsible.id`: больше или равно значению.'
|
||
- in: query
|
||
name: responsible__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `responsible.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: status__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status.id`: точное совпадение.'
|
||
- in: query
|
||
name: status__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status.id`: больше или равно значению.'
|
||
- in: query
|
||
name: status__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `status.id`: меньше или равно значению.'
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedChangeList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
post:
|
||
operationId: api_v1_main_chn_changes_create
|
||
description: |-
|
||
Создаёт изменение в фиксированном статусе `new`. Если тип требует согласования, одновременно создаются ожидающие решения согласующих.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Создать изменение
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
examples:
|
||
СозданиеИзменения:
|
||
value:
|
||
title: Обновление серверов
|
||
description: Установить обновления
|
||
change_type: 3
|
||
responsible: 12
|
||
summary: Создание изменения
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/changes/{id}/:
|
||
get:
|
||
operationId: api_v1_main_chn_changes_retrieve
|
||
summary: Получить изменение
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Возвращает один объект ресурса «changes» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_chn_changes_update
|
||
summary: Заменить изменение
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «changes». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_chn_changes_partial_update
|
||
description: |-
|
||
Частично изменяет объект. Перевод в системный статус `in_progress` автоматически создаёт корневые задачи и дочерние изменения графа.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Изменить изменение
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChangeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChangeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChangeRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
delete:
|
||
operationId: api_v1_main_chn_changes_destroy
|
||
summary: Удалить изменение
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
description: |-
|
||
Удаляет объект ресурса «changes». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/changes/{id}/approve/:
|
||
post:
|
||
operationId: api_v1_main_chn_changes_approve_create
|
||
description: |-
|
||
Сохраняет положительное решение текущего сотрудника. После последнего обязательного согласования изменение переходит в `approved`, если нужно планирование, иначе сразу в `in_progress` с запуском бизнес-процесса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Согласовать изменение
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeApprovalDecisionRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeApprovalDecisionRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeApprovalDecisionRequestRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/changes/{id}/child-tasks/:
|
||
post:
|
||
operationId: api_v1_main_chn_changes_child_tasks_create
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Выполнить операцию с child tasks
|
||
description: |-
|
||
Выполняет операцию POST для ресурса «child tasks».
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/changes/{id}/reject/:
|
||
post:
|
||
operationId: api_v1_main_chn_changes_reject_create
|
||
description: |-
|
||
Сохраняет отрицательное решение текущего сотрудника и переводит изменение в фиксированный статус `rejected`.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Отклонить изменение
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRejectionDecisionRequestRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRejectionDecisionRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeRejectionDecisionRequestRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/changes/{id}/transition/:
|
||
post:
|
||
operationId: api_v1_main_chn_changes_transition_create
|
||
description: |-
|
||
Без `target` сервер выбирает следующий статус по настройкам типа:
|
||
|
||
- `new` → `assessment`, `pending_approval`, `approved` или `in_progress`;
|
||
- `assessment` → `assessment_completed`;
|
||
- `assessment_completed` → `pending_approval`, `approved` или `in_progress`;
|
||
- `approved` → `in_progress` и запуск бизнес-процесса;
|
||
- `review` → `review_completed`;
|
||
- `review_completed` → `closed`.
|
||
|
||
Статус `pending_approval` изменяется действиями `approve`/`reject`. `target=cancelled` разрешён из любого статуса. При входе в `assessment` или `review` автоматически создаётся настроенная задача этапа.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Перевести изменение в следующий статус
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this change.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeStatusTransitionRequestRequest'
|
||
examples:
|
||
СледующийСтатус:
|
||
value: {}
|
||
summary: Следующий статус
|
||
ОтменаИзменения:
|
||
value:
|
||
target: cancelled
|
||
summary: Отмена изменения
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeStatusTransitionRequestRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChangeStatusTransitionRequestRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/changes/pending-approval/:
|
||
get:
|
||
operationId: api_v1_main_chn_changes_pending_approval_retrieve
|
||
description: |-
|
||
Возвращает только изменения, по которым текущий сотрудник ещё не принял решение. Отдельное разрешение на изменение объекта не требуется.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Получить изменения на моё согласование
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/Change'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/settings/:
|
||
get:
|
||
operationId: api_v1_main_chn_settings_list
|
||
parameters:
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedChnSettingsList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список settings
|
||
description: |-
|
||
Возвращает список ресурса «settings». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/settings/{id}/:
|
||
get:
|
||
operationId: api_v1_main_chn_settings_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique value identifying this chn settings.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChnSettings'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить settings
|
||
description: |-
|
||
Возвращает один объект ресурса «settings» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_chn_settings_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique value identifying this chn settings.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChnSettingsRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/ChnSettingsRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/ChnSettingsRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChnSettings'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить settings
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «settings». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_chn_settings_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique value identifying this chn settings.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChnSettingsRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChnSettingsRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedChnSettingsRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/ChnSettings'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить settings
|
||
description: |-
|
||
Частично обновляет объект ресурса «settings». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/task-categories/:
|
||
get:
|
||
operationId: api_v1_main_chn_task_categories_list
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: id__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: id__lt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__range
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: is_active__exact
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: is_active__isnull
|
||
schema:
|
||
type: boolean
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: name__contains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__endswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iendswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iexact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: string
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: name__iregex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: name__istartswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__regex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__startswith
|
||
schema:
|
||
type: string
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: parent__id__exact
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: parent__id__gt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: parent__id__gte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: parent__id__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: parent__id__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: parent__id__lt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: parent__id__lte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: parent__id__range
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedTaskCategoryList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список task categories
|
||
description: |-
|
||
Возвращает список ресурса «task categories». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_main_chn_task_categories_create
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategoryRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategoryRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategoryRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategory'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать task categories
|
||
description: |-
|
||
Создаёт объект ресурса «task categories». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/task-categories/{id}/:
|
||
get:
|
||
operationId: api_v1_main_chn_task_categories_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task category.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategory'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить task categories
|
||
description: |-
|
||
Возвращает один объект ресурса «task categories» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_chn_task_categories_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task category.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategoryRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategoryRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategoryRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategory'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить task categories
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «task categories». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_chn_task_categories_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task category.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedTaskCategoryRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedTaskCategoryRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedTaskCategoryRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskCategory'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить task categories
|
||
description: |-
|
||
Частично обновляет объект ресурса «task categories». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_chn_task_categories_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task category.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить task categories
|
||
description: |-
|
||
Удаляет объект ресурса «task categories». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/task-priorities/:
|
||
get:
|
||
operationId: api_v1_main_chn_task_priorities_list
|
||
parameters:
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: id__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: id__lt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__range
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: is_active__exact
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: is_active__isnull
|
||
schema:
|
||
type: boolean
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: name__contains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__endswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iendswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iexact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: string
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: name__iregex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: name__istartswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__regex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__startswith
|
||
schema:
|
||
type: string
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedTaskPriorityList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить список task priorities
|
||
description: |-
|
||
Возвращает список ресурса «task priorities». Основные фильтры, поиск, сортировка и пагинация перечислены в query-параметрах операции. Дополнительные lookup-варианты, объявленные FilterSet ресурса, поддерживаются API, но скрыты из компактной Swagger-схемы.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
post:
|
||
operationId: api_v1_main_chn_task_priorities_create
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriorityRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriorityRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriorityRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'201':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriority'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Создать task priorities
|
||
description: |-
|
||
Создаёт объект ресурса «task priorities». Повторный запрос может создать дубликат и не считается идемпотентным.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/task-priorities/{id}/:
|
||
get:
|
||
operationId: api_v1_main_chn_task_priorities_retrieve
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task priority.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriority'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Получить task priorities
|
||
description: |-
|
||
Возвращает один объект ресурса «task priorities» по идентификатору. Операция не изменяет состояние.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
put:
|
||
operationId: api_v1_main_chn_task_priorities_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task priority.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriorityRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriorityRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriorityRequest'
|
||
required: true
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriority'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Заменить task priorities
|
||
description: |-
|
||
Полностью заменяет изменяемые поля объекта ресурса «task priorities». Операция идемпотентна для одинакового тела запроса.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
patch:
|
||
operationId: api_v1_main_chn_task_priorities_partial_update
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task priority.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
requestBody:
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedTaskPriorityRequest'
|
||
application/x-www-form-urlencoded:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedTaskPriorityRequest'
|
||
multipart/form-data:
|
||
schema:
|
||
$ref: '#/components/schemas/PatchedTaskPriorityRequest'
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskPriority'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Изменить task priorities
|
||
description: |-
|
||
Частично обновляет объект ресурса «task priorities». Непереданные поля сохраняют прежние значения.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
delete:
|
||
operationId: api_v1_main_chn_task_priorities_destroy
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task priority.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'204':
|
||
description: No response body
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
summary: Удалить task priorities
|
||
description: |-
|
||
Удаляет объект ресурса «task priorities». Связанные объекты обрабатываются по правилам модели; повторный вызов возвращает 404.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
/api/v1/main/chn/task-statuses/:
|
||
get:
|
||
operationId: api_v1_main_chn_task_statuses_list
|
||
description: |-
|
||
Возвращает системный справочник только для чтения:
|
||
|
||
- `new` — задача зарегистрирована;
|
||
- `in_progress` — задача выполняется;
|
||
- `pending` — работа приостановлена;
|
||
- `resolved` — решение ожидает подтверждения;
|
||
- `closed` — результат подтверждён;
|
||
- `cancelled` — задача отменена.
|
||
|
||
Фильтрация доступна по полю `code`.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Получить фиксированные статусы задач
|
||
parameters:
|
||
- in: query
|
||
name: code__contains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__endswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__exact
|
||
schema:
|
||
type: string
|
||
x-spec-enum-id: 82432dccf2655154
|
||
nullable: true
|
||
enum:
|
||
- cancelled
|
||
- closed
|
||
- in_progress
|
||
- new
|
||
- pending
|
||
- resolved
|
||
description: |-
|
||
* `new` - New
|
||
* `in_progress` - In progress
|
||
* `pending` - Pending
|
||
* `resolved` - Resolved
|
||
* `closed` - Closed
|
||
* `cancelled` - Cancelled
|
||
- in: query
|
||
name: code__icontains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__iendswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__iexact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: string
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: code__iregex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: code__istartswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__regex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: code__startswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: id__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: id__lt
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: id__range
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: integer
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: is_active__exact
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: is_active__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: is_closed__exact
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: is_closed__isnull
|
||
schema:
|
||
type: boolean
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: name__contains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__endswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__exact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__icontains
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iendswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__iexact
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__in
|
||
schema:
|
||
type: array
|
||
items:
|
||
type: string
|
||
description: Несколько значений могут быть разделены запятыми.
|
||
explode: false
|
||
style: form
|
||
- in: query
|
||
name: name__iregex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__isnull
|
||
schema:
|
||
type: boolean
|
||
- in: query
|
||
name: name__istartswith
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__regex
|
||
schema:
|
||
type: string
|
||
- in: query
|
||
name: name__startswith
|
||
schema:
|
||
type: string
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/PaginatedTaskStatusList'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/task-statuses/{id}/:
|
||
get:
|
||
operationId: api_v1_main_chn_task_statuses_retrieve
|
||
description: |-
|
||
Статус является системным: создание, изменение и удаление запрещены.
|
||
|
||
Требуется действующий Knox-токен и разрешение на операцию. При недостаточных правах сервер возвращает 403.
|
||
summary: Получить фиксированный статус задачи
|
||
parameters:
|
||
- in: path
|
||
name: id
|
||
schema:
|
||
type: integer
|
||
description: A unique integer value identifying this task status.
|
||
required: true
|
||
tags:
|
||
- Changes
|
||
security:
|
||
- knoxApiToken: []
|
||
responses:
|
||
'200':
|
||
content:
|
||
application/json:
|
||
schema:
|
||
$ref: '#/components/schemas/TaskStatus'
|
||
description: ''
|
||
'400':
|
||
$ref: '#/components/responses/BadRequest'
|
||
'401':
|
||
$ref: '#/components/responses/Unauthorized'
|
||
'403':
|
||
$ref: '#/components/responses/Forbidden'
|
||
'404':
|
||
$ref: '#/components/responses/NotFound'
|
||
'409':
|
||
$ref: '#/components/responses/Conflict'
|
||
'422':
|
||
$ref: '#/components/responses/ValidationError'
|
||
'429':
|
||
$ref: '#/components/responses/TooManyRequests'
|
||
'500':
|
||
$ref: '#/components/responses/InternalError'
|
||
/api/v1/main/chn/task-transitions/:
|
||
get:
|
||
operationId: api_v1_main_chn_task_transitions_list
|
||
parameters:
|
||
- in: query
|
||
name: change__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change.id`: точное совпадение.'
|
||
- in: query
|
||
name: change__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change.id`: больше или равно значению.'
|
||
- in: query
|
||
name: change__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: change_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: change_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: change_type__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `change_type.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: condition__exact
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `condition`: точное совпадение.'
|
||
- in: query
|
||
name: condition__icontains
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `condition`: содержит подстроку без учёта регистра.'
|
||
- in: query
|
||
name: from_task__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `from_task.id`: точное совпадение.'
|
||
- in: query
|
||
name: from_task__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `from_task.id`: больше или равно значению.'
|
||
- in: query
|
||
name: from_task__id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `from_task.id`: меньше или равно значению.'
|
||
- in: query
|
||
name: id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: точное совпадение.'
|
||
- in: query
|
||
name: id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: больше или равно значению.'
|
||
- in: query
|
||
name: id__lte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `id`: меньше или равно значению.'
|
||
- name: limit
|
||
required: false
|
||
in: query
|
||
description: Number of results to return per page.
|
||
schema:
|
||
type: integer
|
||
- name: offset
|
||
required: false
|
||
in: query
|
||
description: The initial index from which to return the results.
|
||
schema:
|
||
type: integer
|
||
- in: query
|
||
name: searchstr
|
||
schema:
|
||
type: string
|
||
description: 'Фильтр по полю `searchstr`: общий поиск по ID, имени и основным
|
||
текстовым полям объекта.'
|
||
- in: query
|
||
name: task_type__id__exact
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `task_type.id`: точное совпадение.'
|
||
- in: query
|
||
name: task_type__id__gte
|
||
schema:
|
||
type: number
|
||
description: 'Фильтр по полю `task_type.id`: больше или равно значению.'
|
||
- in: query
|
||
name: task_type__id__lte
|
||
schema:
|
||
type: number
|