4 "title": "Koha REST API",
8 "url": "http://www.gnu.org/licenses/gpl.txt"
12 "url": "http://koha-community.org/"
15 "basePath": "/api/v1",
19 "operationId": "listPatrons",
26 "description": "A list of patrons",
30 "$ref": "#/definitions/patron"
35 "description": "Access forbidden",
37 "$ref": "#/definitions/error"
43 "/patrons/{borrowernumber}": {
45 "operationId": "getPatron",
49 "$ref": "#/parameters/borrowernumberPathParam"
57 "description": "A patron",
59 "$ref": "#/definitions/patron"
63 "description": "Access forbidden",
65 "$ref": "#/definitions/error"
69 "description": "Patron not found",
71 "$ref": "#/definitions/error"
79 "operationId": "listHolds",
80 "tags": ["borrowers", "holds"],
85 "description": "Internal reserve identifier",
89 "name": "borrowernumber",
91 "description": "Internal borrower identifier",
95 "name": "reservedate",
97 "description": "Reserve date",
101 "name": "biblionumber",
103 "description": "Internal biblio identifier",
107 "name": "branchcode",
109 "description": "Branch code",
113 "name": "notificationdate",
115 "description": "Notification date",
119 "name": "reminderdate",
121 "description": "Reminder date",
125 "name": "cancellationdate",
127 "description": "Cancellation date",
131 "name": "reservenotes",
133 "description": "Reserve notes",
139 "description": "Priority",
145 "description": "Found status",
151 "description": "Time of latest update",
155 "name": "itemnumber",
157 "description": "Internal item identifier",
161 "name": "waitingdate",
163 "description": "Date the item was marked as waiting for the patron",
167 "name": "expirationdate",
169 "description": "Date the hold expires",
173 "name": "lowestPriority",
175 "description": "Lowest priority",
181 "description": "Suspended",
185 "name": "suspend_until",
187 "description": "Suspended until",
191 "produces": ["application/json"],
194 "description": "A list of holds",
195 "schema": { "$ref": "#/definitions/holds" }
198 "description": "Borrower not found",
199 "schema": { "$ref": "#/definitions/error" }
204 "operationId": "addHold",
205 "tags": ["borrowers", "holds"],
210 "description": "A JSON object containing informations about the new hold",
216 "description": "Borrower internal identifier",
220 "description": "Biblio internal identifier",
224 "description": "Item internal identifier",
228 "description": "Pickup location",
232 "description": "Hold end date",
240 "consumes": ["application/json"],
241 "produces": ["application/json"],
244 "description": "Created hold",
245 "schema": { "$ref": "#/definitions/hold" }
248 "description": "Missing or wrong parameters",
249 "schema": { "$ref": "#/definitions/error" }
252 "description": "Hold not allowed",
253 "schema": { "$ref": "#/definitions/error" }
256 "description": "Borrower not found",
257 "schema": { "$ref": "#/definitions/error" }
260 "description": "Internal error",
261 "schema": { "$ref": "#/definitions/error" }
266 "/holds/{reserve_id}": {
268 "operationId": "editHold",
271 { "$ref": "#/parameters/holdIdPathParam" },
275 "description": "A JSON object containing fields to modify",
281 "description": "Position in waiting queue",
286 "description": "Pickup location",
290 "description": "Suspend until",
298 "consumes": ["application/json"],
299 "produces": ["application/json"],
302 "description": "Updated hold",
303 "schema": { "$ref": "#/definitions/hold" }
306 "description": "Missing or wrong parameters",
307 "schema": { "$ref": "#/definitions/error" }
310 "description": "Hold not found",
311 "schema": { "$ref": "#/definitions/error" }
316 "operationId": "deleteHold",
319 { "$ref": "#/parameters/holdIdPathParam" }
321 "produces": ["application/json"],
324 "description": "Successful deletion",
330 "description": "Hold not found",
331 "schema": { "$ref": "#/definitions/error" }
338 "$ref": "./definitions/index.json"
341 "borrowernumberPathParam": {
342 "name": "borrowernumber",
344 "description": "Internal patron identifier",
349 "name": "reserve_id",
351 "description": "Internal hold identifier",