Lines 97-101
Link Here
|
97 |
} |
97 |
} |
98 |
} |
98 |
} |
99 |
} |
99 |
} |
|
|
100 |
}, |
101 |
"/patrons/{patron_id}/checkouts": { |
102 |
"get": { |
103 |
"x-mojo-to": "Checkouts#list", |
104 |
"operationId": "listPatronsCheckouts", |
105 |
"tags": ["patrons", "checkouts"], |
106 |
"parameters": [{ |
107 |
"$ref": "../parameters.json#/patron_id_pp" |
108 |
},{ |
109 |
"name": "checked_in", |
110 |
"in": "query", |
111 |
"description": "By default, only current checkout are returned, when this is true, all checkouts (current and checked in) are returned as result.", |
112 |
"type": "boolean" |
113 |
}], |
114 |
"produces": [ |
115 |
"application/json" |
116 |
], |
117 |
"responses": { |
118 |
"200": { |
119 |
"description": "A list of checkouts", |
120 |
"schema": { |
121 |
"$ref": "../definitions.json#/checkouts" |
122 |
} |
123 |
}, |
124 |
"403": { |
125 |
"description": "Access forbidden", |
126 |
"schema": { "$ref": "../definitions.json#/error" } |
127 |
}, |
128 |
"404": { |
129 |
"description": "Patron not found", |
130 |
"schema": { "$ref": "../definitions.json#/error" } |
131 |
} |
132 |
}, |
133 |
"x-koha-authorization": { |
134 |
"permissions": { |
135 |
"circulate": "circulate_remaining_permissions" |
136 |
} |
137 |
} |
138 |
} |
100 |
} |
139 |
} |
101 |
} |
140 |
} |