Lines 135-139
Link Here
|
135 |
} |
135 |
} |
136 |
} |
136 |
} |
137 |
} |
137 |
} |
|
|
138 |
}, |
139 |
"/patrons/{patron_id}/checkouts": { |
140 |
"get": { |
141 |
"x-mojo-to": "Checkouts#list", |
142 |
"operationId": "listPatronsCheckouts", |
143 |
"tags": ["patrons", "checkouts"], |
144 |
"parameters": [{ |
145 |
"$ref": "../parameters.json#/patron_id_pp" |
146 |
},{ |
147 |
"name": "checked_in", |
148 |
"in": "query", |
149 |
"description": "By default, only current checkout are returned, when this is true, all checkouts (current and checked in) are returned as result.", |
150 |
"type": "boolean" |
151 |
}], |
152 |
"produces": [ |
153 |
"application/json" |
154 |
], |
155 |
"responses": { |
156 |
"200": { |
157 |
"description": "A list of checkouts", |
158 |
"schema": { |
159 |
"$ref": "../definitions.json#/checkouts" |
160 |
} |
161 |
}, |
162 |
"403": { |
163 |
"description": "Access forbidden", |
164 |
"schema": { "$ref": "../definitions.json#/error" } |
165 |
}, |
166 |
"404": { |
167 |
"description": "Patron not found", |
168 |
"schema": { "$ref": "../definitions.json#/error" } |
169 |
} |
170 |
}, |
171 |
"x-koha-authorization": { |
172 |
"permissions": { |
173 |
"circulate": "circulate_remaining_permissions" |
174 |
} |
175 |
} |
176 |
} |
138 |
} |
177 |
} |
139 |
} |
178 |
} |