|
Lines 134-139
Link Here
|
| 134 |
} |
134 |
} |
| 135 |
} |
135 |
} |
| 136 |
}, |
136 |
}, |
|
|
137 |
"/biblios/{biblio_id}/items": { |
| 138 |
"get": { |
| 139 |
"x-mojo-to": "Biblios#get_items", |
| 140 |
"operationId": "getBiblioItems", |
| 141 |
"tags": [ |
| 142 |
"biblios", |
| 143 |
"items" |
| 144 |
], |
| 145 |
"parameters": [ |
| 146 |
{ |
| 147 |
"$ref": "../parameters.json#/biblio_id_pp" |
| 148 |
}, |
| 149 |
{ |
| 150 |
"$ref": "../parameters.json#/match" |
| 151 |
}, |
| 152 |
{ |
| 153 |
"$ref": "../parameters.json#/order_by" |
| 154 |
}, |
| 155 |
{ |
| 156 |
"$ref": "../parameters.json#/page" |
| 157 |
}, |
| 158 |
{ |
| 159 |
"$ref": "../parameters.json#/per_page" |
| 160 |
}, |
| 161 |
{ |
| 162 |
"$ref": "../parameters.json#/q_param" |
| 163 |
}, |
| 164 |
{ |
| 165 |
"$ref": "../parameters.json#/q_body" |
| 166 |
}, |
| 167 |
{ |
| 168 |
"$ref": "../parameters.json#/q_header" |
| 169 |
} |
| 170 |
], |
| 171 |
"consumes": [ |
| 172 |
"application/json" |
| 173 |
], |
| 174 |
"produces": [ |
| 175 |
"application/json" |
| 176 |
], |
| 177 |
"responses": { |
| 178 |
"200": { |
| 179 |
"description": "A list of the items attached to the record", |
| 180 |
"schema": { |
| 181 |
"type": "array", |
| 182 |
"items": { |
| 183 |
"$ref": "../definitions.json#/item" |
| 184 |
} |
| 185 |
} |
| 186 |
}, |
| 187 |
"401": { |
| 188 |
"description": "Authentication required", |
| 189 |
"schema": { |
| 190 |
"$ref": "../definitions.json#/error" |
| 191 |
} |
| 192 |
}, |
| 193 |
"403": { |
| 194 |
"description": "Access forbidden", |
| 195 |
"schema": { |
| 196 |
"$ref": "../definitions.json#/error" |
| 197 |
} |
| 198 |
}, |
| 199 |
"404": { |
| 200 |
"description": "Biblio not found", |
| 201 |
"schema": { |
| 202 |
"$ref": "../definitions.json#/error" |
| 203 |
} |
| 204 |
}, |
| 205 |
"406": { |
| 206 |
"description": "Not acceptable", |
| 207 |
"schema": { |
| 208 |
"type": "array", |
| 209 |
"description": "Accepted content-types", |
| 210 |
"items": { |
| 211 |
"type": "string" |
| 212 |
} |
| 213 |
} |
| 214 |
}, |
| 215 |
"500": { |
| 216 |
"description": "Internal server error", |
| 217 |
"schema": { |
| 218 |
"$ref": "../definitions.json#/error" |
| 219 |
} |
| 220 |
}, |
| 221 |
"503": { |
| 222 |
"description": "Under maintenance", |
| 223 |
"schema": { |
| 224 |
"$ref": "../definitions.json#/error" |
| 225 |
} |
| 226 |
} |
| 227 |
}, |
| 228 |
"x-koha-authorization": { |
| 229 |
"permissions": { |
| 230 |
"catalogue": "1" |
| 231 |
} |
| 232 |
} |
| 233 |
} |
| 234 |
}, |
| 137 |
"/public/biblios/{biblio_id}": { |
235 |
"/public/biblios/{biblio_id}": { |
| 138 |
"get": { |
236 |
"get": { |
| 139 |
"x-mojo-to": "Biblios#get_public", |
237 |
"x-mojo-to": "Biblios#get_public", |
| 140 |
- |
|
|