Lines 1-4
Link Here
|
1 |
{ |
1 |
{ |
|
|
2 |
"/public/patrons/{patron_id}/export": { |
3 |
"get": { |
4 |
"x-mojo-to": "Patrons::Export#get_public", |
5 |
"operationId": "getPublicPatronExport", |
6 |
"tags": [ |
7 |
"patron" |
8 |
], |
9 |
"parameters": [ |
10 |
{ |
11 |
"$ref": "../parameters.json#/patron_id_pp" |
12 |
}, |
13 |
{ |
14 |
"$ref": "../parameters.json#/page" |
15 |
}, |
16 |
{ |
17 |
"$ref": "../parameters.json#/per_page" |
18 |
} |
19 |
], |
20 |
"produces": [ |
21 |
"application/json" |
22 |
], |
23 |
"responses": { |
24 |
"200": { |
25 |
"description": "Patron's data export", |
26 |
"schema": { |
27 |
"$ref": "../definitions.json#/patron_export" |
28 |
} |
29 |
}, |
30 |
"401": { |
31 |
"description": "Authentication required", |
32 |
"schema": { |
33 |
"$ref": "../definitions.json#/error" |
34 |
} |
35 |
}, |
36 |
"403": { |
37 |
"description": "Access forbidden", |
38 |
"schema": { |
39 |
"$ref": "../definitions.json#/error" |
40 |
} |
41 |
}, |
42 |
"404": { |
43 |
"description": "Patron not found", |
44 |
"schema": { |
45 |
"$ref": "../definitions.json#/error" |
46 |
} |
47 |
}, |
48 |
"500": { |
49 |
"description": "Internal server error", |
50 |
"schema": { |
51 |
"$ref": "../definitions.json#/error" |
52 |
} |
53 |
}, |
54 |
"503": { |
55 |
"description": "Under maintenance", |
56 |
"schema": { |
57 |
"$ref": "../definitions.json#/error" |
58 |
} |
59 |
} |
60 |
}, |
61 |
"x-koha-authorization": { |
62 |
"permissions": { |
63 |
"borrowers": "edit_borrowers" |
64 |
}, |
65 |
"allow-owner": true |
66 |
} |
67 |
} |
68 |
}, |
2 |
"/public/patrons/{patron_id}/password": { |
69 |
"/public/patrons/{patron_id}/password": { |
3 |
"post": { |
70 |
"post": { |
4 |
"x-mojo-to": "Patrons::Password#set_public", |
71 |
"x-mojo-to": "Patrons::Password#set_public", |
Lines 237-240
Link Here
|
237 |
} |
304 |
} |
238 |
} |
305 |
} |
239 |
} |
306 |
} |
240 |
} |
307 |
} |
241 |
- |
|
|