4 "x-mojo-to": "Cities#list",
5 "operationId": "listCities",
9 "summary": "List cities",
17 "description": "Case insensative search on city name",
24 "description": "Case insensative search on city state",
31 "description": "Case insensative search on city country",
36 "name": "postal_code",
38 "description": "Case Insensative search on city postal code",
43 "$ref": "../parameters.json#/match"
46 "$ref": "../parameters.json#/order_by"
49 "$ref": "../parameters.json#/page"
52 "$ref": "../parameters.json#/per_page"
55 "$ref": "../parameters.json#/q_param"
58 "$ref": "../parameters.json#/q_body"
61 "$ref": "../parameters.json#/q_header"
66 "description": "A list of cities",
70 "$ref": "../definitions.json#/city"
75 "description": "Access forbidden",
77 "$ref": "../definitions.json#/error"
81 "description": "Internal error",
83 "$ref": "../definitions.json#/error"
87 "description": "Under maintenance",
89 "$ref": "../definitions.json#/error"
93 "x-koha-authorization": {
100 "x-mojo-to": "Cities#add",
101 "operationId": "addCity",
105 "summary": "Add city",
110 "description": "A JSON object containing informations about the new hold",
113 "$ref": "../definitions.json#/city"
122 "description": "City added",
124 "$ref": "../definitions.json#/city"
128 "description": "Authentication required",
130 "$ref": "../definitions.json#/error"
134 "description": "Access forbidden",
136 "$ref": "../definitions.json#/error"
140 "description": "Internal error",
142 "$ref": "../definitions.json#/error"
146 "description": "Under maintenance",
148 "$ref": "../definitions.json#/error"
152 "x-koha-authorization": {
154 "parameters": "manage_cities"
159 "/cities/{city_id}": {
161 "x-mojo-to": "Cities#get",
162 "operationId": "getCity",
166 "summary": "Get city",
169 "$ref": "../parameters.json#/city_id_pp"
177 "description": "A city",
179 "$ref": "../definitions.json#/city"
183 "description": "City not found",
185 "$ref": "../definitions.json#/error"
189 "description": "Internal error",
191 "$ref": "../definitions.json#/error"
195 "description": "Under maintenance",
197 "$ref": "../definitions.json#/error"
201 "x-koha-authorization": {
208 "x-mojo-to": "Cities#update",
209 "operationId": "updateCity",
213 "summary": "Update city",
216 "$ref": "../parameters.json#/city_id_pp"
221 "description": "A city object",
224 "$ref": "../definitions.json#/city"
233 "description": "A city",
235 "$ref": "../definitions.json#/city"
239 "description": "Authentication required",
241 "$ref": "../definitions.json#/error"
245 "description": "Access forbidden",
247 "$ref": "../definitions.json#/error"
251 "description": "City not found",
253 "$ref": "../definitions.json#/error"
257 "description": "Internal error",
259 "$ref": "../definitions.json#/error"
263 "description": "Under maintenance",
265 "$ref": "../definitions.json#/error"
269 "x-koha-authorization": {
271 "parameters": "manage_cities"
276 "x-mojo-to": "Cities#delete",
277 "operationId": "deleteCity",
281 "summary": "Delete city",
284 "$ref": "../parameters.json#/city_id_pp"
292 "description": "City deleted"
295 "description": "Authentication required",
297 "$ref": "../definitions.json#/error"
301 "description": "Access forbidden",
303 "$ref": "../definitions.json#/error"
307 "description": "City not found",
309 "$ref": "../definitions.json#/error"
313 "description": "Internal error",
315 "$ref": "../definitions.json#/error"
319 "description": "Under maintenance",
321 "$ref": "../definitions.json#/error"
325 "x-koha-authorization": {
327 "parameters": "manage_cities"