|
Lines 132-137
Link Here
|
| 132 |
} |
132 |
} |
| 133 |
} |
133 |
} |
| 134 |
}, |
134 |
}, |
|
|
135 |
"/biblios/{biblio_id}/checkouts": { |
| 136 |
"get": { |
| 137 |
"x-mojo-to": "Biblios#get_checkouts", |
| 138 |
"operationId": "listBiblioCheckouts", |
| 139 |
"tags": [ |
| 140 |
"checkouts" |
| 141 |
], |
| 142 |
"summary": "List checkouts for a biblio", |
| 143 |
"parameters": [ |
| 144 |
{ |
| 145 |
"$ref": "../parameters.json#/biblio_id_pp" |
| 146 |
}, |
| 147 |
{ |
| 148 |
"$ref": "../parameters.json#/page" |
| 149 |
}, |
| 150 |
{ |
| 151 |
"$ref": "../parameters.json#/per_page" |
| 152 |
}, |
| 153 |
{ |
| 154 |
"$ref": "../parameters.json#/match" |
| 155 |
}, |
| 156 |
{ |
| 157 |
"$ref": "../parameters.json#/order_by" |
| 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 |
"name": "checked_in", |
| 170 |
"in": "query", |
| 171 |
"description": "By default, current checkouts are returned, when this is true then checked in checkouts are returned as result.", |
| 172 |
"type": "boolean" |
| 173 |
} |
| 174 |
], |
| 175 |
"produces": [ |
| 176 |
"application/json" |
| 177 |
], |
| 178 |
"responses": { |
| 179 |
"200": { |
| 180 |
"description": "A list of checkouts", |
| 181 |
"schema": { |
| 182 |
"$ref": "../definitions.json#/checkouts" |
| 183 |
} |
| 184 |
}, |
| 185 |
"403": { |
| 186 |
"description": "Access forbidden", |
| 187 |
"schema": { |
| 188 |
"$ref": "../definitions.json#/error" |
| 189 |
} |
| 190 |
}, |
| 191 |
"404": { |
| 192 |
"description": "Biblio not found", |
| 193 |
"schema": { |
| 194 |
"$ref": "../definitions.json#/error" |
| 195 |
} |
| 196 |
} |
| 197 |
}, |
| 198 |
"x-koha-authorization": { |
| 199 |
"permissions": { |
| 200 |
"circulate": "circulate_remaining_permissions" |
| 201 |
} |
| 202 |
}, |
| 203 |
"x-koha-embed": [ |
| 204 |
"issuer", |
| 205 |
"item", |
| 206 |
"patron", |
| 207 |
"library" |
| 208 |
] |
| 209 |
} |
| 210 |
}, |
| 135 |
"/biblios/{biblio_id}/items": { |
211 |
"/biblios/{biblio_id}/items": { |
| 136 |
"get": { |
212 |
"get": { |
| 137 |
"x-mojo-to": "Biblios#get_items", |
213 |
"x-mojo-to": "Biblios#get_items", |