City

list

request
GET /api/v2/catalog/cities HTTP/1.1
Parameter Description

name

String to search by name. EX: ?name=test

pageable

Pageable description

response
[ "", "test", "Москва", "Псков", "Санкт-Петербург", "Сыктывкар", "Тула" ]
Table 577. response description
Path Type Description

[]

Array

Available cities for using in forms.

create

request
POST /api/v2/general/cities HTTP/1.1

{
  "name" : "Test",
  "deleted" : false
}
Table 578. request description
Path Type Description Constraints

name

String

city name

Must not be blank.
Size must be between 0 and 50 inclusive

deleted

Boolean

is city deleted?

Must not be null

response
{
  "name" : "Test",
  "deleted" : false
}
Table 579. response description
Path Type Description

name

String

city name

deleted

Boolean

is city deleted?

get

request
GET /api/v2/general/cities?name=Test HTTP/1.1
Table 580. request description
Parameter Description

name

city name

response
{
  "name" : "Test",
  "deleted" : false
}
Table 581. response description
Path Type Description

name

String

city name

deleted

Boolean

is city deleted?

update

request
PUT /api/v2/general/cities?name=Test HTTP/1.1

{
  "name" : "Test",
  "deleted" : false
}
Table 582. request description
Path Type Description Constraints

name

String

city name

Must not be blank.
Size must be between 0 and 50 inclusive

deleted

Boolean

is city deleted?

Must not be null

Parameter Description

name

city name

response
HTTP/1.1 200 OK

delete

request
DELETE /api/v2/general/cities?name=Test HTTP/1.1
Table 583. request description
Parameter Description

name

city name

response
HTTP/1.1 200 OK