4 "x-mojo-to": "Cities#list",
5 "operationId": "listCities",
13 "description": "Case insensative search on city name",
19 "description": "Case insensative search on city state",
25 "description": "Case insensative search on city country",
29 "name": "postal_code",
31 "description": "Case Insensative search on city postal code",
37 "description": "A list of cities",
41 "$ref": "../definitions.json#/city"
46 "description": "Access forbidden",
48 "$ref": "../definitions.json#/error"
52 "description": "Internal error",
54 "$ref": "../definitions.json#/error"
58 "description": "Under maintenance",
60 "$ref": "../definitions.json#/error"
64 "x-koha-authorization": {
71 "x-mojo-to": "Cities#add",
72 "operationId": "addCity",
77 "description": "A JSON object containing informations about the new hold",
80 "$ref": "../definitions.json#/city"
88 "description": "City added",
90 "$ref": "../definitions.json#/city"
94 "description": "Authentication required",
96 "$ref": "../definitions.json#/error"
100 "description": "Access forbidden",
102 "$ref": "../definitions.json#/error"
106 "description": "Internal error",
108 "$ref": "../definitions.json#/error"
112 "description": "Under maintenance",
114 "$ref": "../definitions.json#/error"
118 "x-koha-authorization": {
120 "parameters": "manage_cities"
125 "/cities/{city_id}": {
127 "x-mojo-to": "Cities#get",
128 "operationId": "getCity",
131 "$ref": "../parameters.json#/city_id_pp"
138 "description": "A city",
140 "$ref": "../definitions.json#/city"
144 "description": "City not found",
146 "$ref": "../definitions.json#/error"
150 "description": "Internal error",
152 "$ref": "../definitions.json#/error"
156 "description": "Under maintenance",
158 "$ref": "../definitions.json#/error"
162 "x-koha-authorization": {
169 "x-mojo-to": "Cities#update",
170 "operationId": "updateCity",
173 "$ref": "../parameters.json#/city_id_pp"
177 "description": "A city object",
180 "$ref": "../definitions.json#/city"
188 "description": "A city",
190 "$ref": "../definitions.json#/city"
194 "description": "Authentication required",
196 "$ref": "../definitions.json#/error"
200 "description": "Access forbidden",
202 "$ref": "../definitions.json#/error"
206 "description": "City not found",
208 "$ref": "../definitions.json#/error"
212 "description": "Internal error",
214 "$ref": "../definitions.json#/error"
218 "description": "Under maintenance",
220 "$ref": "../definitions.json#/error"
224 "x-koha-authorization": {
226 "parameters": "manage_cities"
231 "x-mojo-to": "Cities#delete",
232 "operationId": "deleteCity",
235 "$ref": "../parameters.json#/city_id_pp"
242 "description": "City deleted",
248 "description": "Authentication required",
250 "$ref": "../definitions.json#/error"
254 "description": "Access forbidden",
256 "$ref": "../definitions.json#/error"
260 "description": "City not found",
262 "$ref": "../definitions.json#/error"
266 "description": "Internal error",
268 "$ref": "../definitions.json#/error"
272 "description": "Under maintenance",
274 "$ref": "../definitions.json#/error"
278 "x-koha-authorization": {
280 "parameters": "manage_cities"