Address

создание улицы из общего списка

AllStreetController (privileges: SYSTEM, ADMIN)

post/streets

Request body

namestring required

полное наименование улицы

{"stackTrail":"paths:/streets:post:requestBody:content:application/json:schema:properties:fias","oasType":"schema","type":"unknown","description":"ФИАС улицы","example":null}
cityIdinteger required

Ресурс населенного пункта

prefixIdinteger required

Ресурс типа улицы

Example request

{
  "name": "Озерная",
  "cityId": 2,
  "prefixId": 3
}

Response

idinteger

Вывод данных по улице для общего списка улиц.

namestring
{"stackTrail":"components:schemas:AllStreet:properties:fias","oasType":"schema","type":"unknown","title":"ФИАС дома","example":null}
cityIdstring
cityNamestring
cityPrefixIdinteger
cityPrefixNamestring
cityPrefixShortNamestring
prefixIdinteger
prefixNamestring
prefixShortNamestring

Example response

{
  "id": 3,
  "name": "Брянская",
  "cityName": "Сосновка",
  "cityPrefixId": 5,
  "cityPrefixName": "село",
  "cityPrefixShortName": "с.",
  "prefixId": 6,
  "prefixName": "улица",
  "prefixShortName": "ул."
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.