Lines 124-128
Link Here
|
124 |
} |
124 |
} |
125 |
} |
125 |
} |
126 |
} |
126 |
} |
|
|
127 |
}, |
128 |
"/items/{item_id}/pickup_locations": { |
129 |
"get": { |
130 |
"x-mojo-to": "Items#pickup_locations", |
131 |
"operationId": "getItemPickupLocations", |
132 |
"tags": [ |
133 |
"items", |
134 |
"pickup_locations" |
135 |
], |
136 |
"parameters": [ |
137 |
{ |
138 |
"$ref": "../parameters.json#/item_id_pp" |
139 |
}, |
140 |
{ |
141 |
"name": "patron_id", |
142 |
"in": "query", |
143 |
"description": "Internal patron identifier", |
144 |
"required": true, |
145 |
"type": "integer" |
146 |
}, |
147 |
{ |
148 |
"$ref": "../parameters.json#/match" |
149 |
}, |
150 |
{ |
151 |
"$ref": "../parameters.json#/order_by" |
152 |
}, |
153 |
{ |
154 |
"$ref": "../parameters.json#/page" |
155 |
}, |
156 |
{ |
157 |
"$ref": "../parameters.json#/per_page" |
158 |
}, |
159 |
{ |
160 |
"$ref": "../parameters.json#/q_param" |
161 |
}, |
162 |
{ |
163 |
"$ref": "../parameters.json#/q_body" |
164 |
}, |
165 |
{ |
166 |
"$ref": "../parameters.json#/q_header" |
167 |
} |
168 |
], |
169 |
"consumes": [ |
170 |
"application/json" |
171 |
], |
172 |
"produces": [ |
173 |
"application/json" |
174 |
], |
175 |
"responses": { |
176 |
"200": { |
177 |
"description": "Item pickup locations", |
178 |
"schema": { |
179 |
"type": "array", |
180 |
"items": { |
181 |
"$ref": "../definitions.json#/library" |
182 |
} |
183 |
} |
184 |
}, |
185 |
"400": { |
186 |
"description": "Missing or wrong parameters", |
187 |
"schema": { |
188 |
"$ref": "../definitions.json#/error" |
189 |
} |
190 |
}, |
191 |
"401": { |
192 |
"description": "Authentication required", |
193 |
"schema": { |
194 |
"$ref": "../definitions.json#/error" |
195 |
} |
196 |
}, |
197 |
"403": { |
198 |
"description": "Access forbidden", |
199 |
"schema": { |
200 |
"$ref": "../definitions.json#/error" |
201 |
} |
202 |
}, |
203 |
"404": { |
204 |
"description": "Biblio not found", |
205 |
"schema": { |
206 |
"$ref": "../definitions.json#/error" |
207 |
} |
208 |
}, |
209 |
"500": { |
210 |
"description": "Internal server error", |
211 |
"schema": { |
212 |
"$ref": "../definitions.json#/error" |
213 |
} |
214 |
}, |
215 |
"503": { |
216 |
"description": "Under maintenance", |
217 |
"schema": { |
218 |
"$ref": "../definitions.json#/error" |
219 |
} |
220 |
} |
221 |
}, |
222 |
"x-koha-authorization": { |
223 |
"permissions": { |
224 |
"reserveforothers": "place_holds" |
225 |
} |
226 |
} |
227 |
} |
127 |
} |
228 |
} |
128 |
} |
229 |
} |
129 |
- |
|
|