Lines 3-212
swagger: 2.0
Link Here
|
3 |
basePath: /api/v1 |
3 |
basePath: /api/v1 |
4 |
definitions: |
4 |
definitions: |
5 |
account_line: |
5 |
account_line: |
6 |
$ref: definitions/account_line.yaml |
6 |
$ref: ./definitions/account_line.yaml |
7 |
advancededitormacro: |
7 |
advancededitormacro: |
8 |
$ref: definitions/advancededitormacro.yaml |
8 |
$ref: ./definitions/advancededitormacro.yaml |
9 |
allows_renewal: |
9 |
allows_renewal: |
10 |
$ref: definitions/allows_renewal.yaml |
10 |
$ref: ./definitions/allows_renewal.yaml |
11 |
basket: |
11 |
basket: |
12 |
$ref: definitions/basket.yaml |
12 |
$ref: ./definitions/basket.yaml |
13 |
cashup: |
13 |
cashup: |
14 |
$ref: definitions/cashup.yaml |
14 |
$ref: ./definitions/cashup.yaml |
15 |
checkout: |
15 |
checkout: |
16 |
$ref: definitions/checkout.yaml |
16 |
$ref: ./definitions/checkout.yaml |
17 |
checkouts: |
17 |
checkouts: |
18 |
$ref: definitions/checkouts.yaml |
18 |
$ref: ./definitions/checkouts.yaml |
19 |
circ-rule-kind: |
19 |
circ-rule-kind: |
20 |
$ref: definitions/circ-rule-kind.yaml |
20 |
$ref: ./definitions/circ-rule-kind.yaml |
21 |
city: |
21 |
city: |
22 |
$ref: definitions/city.yaml |
22 |
$ref: ./definitions/city.yaml |
23 |
error: |
23 |
error: |
24 |
$ref: definitions/error.yaml |
24 |
$ref: ./definitions/error.yaml |
25 |
fund: |
25 |
fund: |
26 |
$ref: definitions/fund.yaml |
26 |
$ref: ./definitions/fund.yaml |
27 |
hold: |
27 |
hold: |
28 |
$ref: definitions/hold.yaml |
28 |
$ref: ./definitions/hold.yaml |
29 |
holds: |
29 |
holds: |
30 |
$ref: definitions/holds.yaml |
30 |
$ref: ./definitions/holds.yaml |
31 |
ill_backend: |
31 |
ill_backend: |
32 |
$ref: definitions/ill_backend.yaml |
32 |
$ref: ./definitions/ill_backend.yaml |
33 |
ill_backends: |
33 |
ill_backends: |
34 |
$ref: definitions/ill_backends.yaml |
34 |
$ref: ./definitions/ill_backends.yaml |
35 |
import_batch_profile: |
35 |
import_batch_profile: |
36 |
$ref: definitions/import_batch_profile.yaml |
36 |
$ref: ./definitions/import_batch_profile.yaml |
37 |
import_batch_profiles: |
37 |
import_batch_profiles: |
38 |
$ref: definitions/import_batch_profiles.yaml |
38 |
$ref: ./definitions/import_batch_profiles.yaml |
39 |
invoice: |
39 |
invoice: |
40 |
$ref: definitions/invoice.yaml |
40 |
$ref: ./definitions/invoice.yaml |
41 |
item: |
41 |
item: |
42 |
$ref: definitions/item.yaml |
42 |
$ref: ./definitions/item.yaml |
43 |
library: |
43 |
library: |
44 |
$ref: definitions/library.yaml |
44 |
$ref: ./definitions/library.yaml |
45 |
order: |
45 |
order: |
46 |
$ref: definitions/order.yaml |
46 |
$ref: ./definitions/order.yaml |
47 |
patron: |
47 |
patron: |
48 |
$ref: definitions/patron.yaml |
48 |
$ref: ./definitions/patron.yaml |
49 |
patron_account_credit: |
49 |
patron_account_credit: |
50 |
$ref: definitions/patron_account_credit.yaml |
50 |
$ref: ./definitions/patron_account_credit.yaml |
51 |
patron_balance: |
51 |
patron_balance: |
52 |
$ref: definitions/patron_balance.yaml |
52 |
$ref: ./definitions/patron_balance.yaml |
53 |
patron_extended_attribute: |
53 |
patron_extended_attribute: |
54 |
$ref: definitions/patron_extended_attribute.yaml |
54 |
$ref: ./definitions/patron_extended_attribute.yaml |
55 |
quote: |
55 |
quote: |
56 |
$ref: definitions/quote.yaml |
56 |
$ref: ./definitions/quote.yaml |
57 |
return_claim: |
57 |
return_claim: |
58 |
$ref: definitions/return_claim.yaml |
58 |
$ref: ./definitions/return_claim.yaml |
59 |
smtp_server: |
59 |
smtp_server: |
60 |
$ref: definitions/smtp_server.yaml |
60 |
$ref: ./definitions/smtp_server.yaml |
61 |
suggestion: |
61 |
suggestion: |
62 |
$ref: definitions/suggestion.yaml |
62 |
$ref: ./definitions/suggestion.yaml |
63 |
transfer_limit: |
63 |
transfer_limit: |
64 |
$ref: definitions/transfer_limit.yaml |
64 |
$ref: ./definitions/transfer_limit.yaml |
65 |
vendor: |
65 |
vendor: |
66 |
$ref: definitions/vendor.yaml |
66 |
$ref: ./definitions/vendor.yaml |
67 |
paths: |
67 |
paths: |
68 |
/acquisitions/funds: |
68 |
/acquisitions/funds: |
69 |
$ref: paths/acquisitions_funds.yaml#/~1acquisitions~1funds |
69 |
$ref: ./paths/acquisitions_funds.yaml#/~1acquisitions~1funds |
70 |
/acquisitions/orders: |
70 |
/acquisitions/orders: |
71 |
$ref: paths/acquisitions_orders.yaml#/~1acquisitions~1orders |
71 |
$ref: ./paths/acquisitions_orders.yaml#/~1acquisitions~1orders |
72 |
"/acquisitions/orders/{order_id}": |
72 |
"/acquisitions/orders/{order_id}": |
73 |
$ref: "paths/acquisitions_orders.yaml#/~1acquisitions~1orders~1{order_id}" |
73 |
$ref: "./paths/acquisitions_orders.yaml#/~1acquisitions~1orders~1{order_id}" |
74 |
/acquisitions/vendors: |
74 |
/acquisitions/vendors: |
75 |
$ref: paths/acquisitions_vendors.yaml#/~1acquisitions~1vendors |
75 |
$ref: ./paths/acquisitions_vendors.yaml#/~1acquisitions~1vendors |
76 |
"/acquisitions/vendors/{vendor_id}": |
76 |
"/acquisitions/vendors/{vendor_id}": |
77 |
$ref: "paths/acquisitions_vendors.yaml#/~1acquisitions~1vendors~1{vendor_id}" |
77 |
$ref: "./paths/acquisitions_vendors.yaml#/~1acquisitions~1vendors~1{vendor_id}" |
78 |
/advanced_editor/macros: |
78 |
/advanced_editor/macros: |
79 |
$ref: paths/advancededitormacros.yaml#/~1advanced_editor~1macros |
79 |
$ref: ./paths/advancededitormacros.yaml#/~1advanced_editor~1macros |
80 |
/advanced_editor/macros/shared: |
80 |
/advanced_editor/macros/shared: |
81 |
$ref: paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1shared |
81 |
$ref: ./paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1shared |
82 |
"/advanced_editor/macros/shared/{advancededitormacro_id}": |
82 |
"/advanced_editor/macros/shared/{advancededitormacro_id}": |
83 |
$ref: "paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1shared~1{advancededitormacro_id}" |
83 |
$ref: "./paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1shared~1{advancededitormacro_id}" |
84 |
"/advanced_editor/macros/{advancededitormacro_id}": |
84 |
"/advanced_editor/macros/{advancededitormacro_id}": |
85 |
$ref: "paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1{advancededitormacro_id}" |
85 |
$ref: "./paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1{advancededitormacro_id}" |
86 |
"/article_requests/{article_request_id}": |
86 |
"/article_requests/{article_request_id}": |
87 |
$ref: "paths/article_requests.yaml#/~1article_requests~1{article_request_id}" |
87 |
$ref: "./paths/article_requests.yaml#/~1article_requests~1{article_request_id}" |
88 |
"/biblios/{biblio_id}": |
88 |
"/biblios/{biblio_id}": |
89 |
$ref: "paths/biblios.yaml#/~1biblios~1{biblio_id}" |
89 |
$ref: "./paths/biblios.yaml#/~1biblios~1{biblio_id}" |
90 |
"/biblios/{biblio_id}/checkouts": |
90 |
"/biblios/{biblio_id}/checkouts": |
91 |
$ref: "paths/biblios.yaml#/~1biblios~1{biblio_id}~1checkouts" |
91 |
$ref: "./paths/biblios.yaml#/~1biblios~1{biblio_id}~1checkouts" |
92 |
"/biblios/{biblio_id}/items": |
92 |
"/biblios/{biblio_id}/items": |
93 |
$ref: "paths/biblios.yaml#/~1biblios~1{biblio_id}~1items" |
93 |
$ref: "./paths/biblios.yaml#/~1biblios~1{biblio_id}~1items" |
94 |
"/biblios/{biblio_id}/pickup_locations": |
94 |
"/biblios/{biblio_id}/pickup_locations": |
95 |
$ref: "paths/biblios.yaml#/~1biblios~1{biblio_id}~1pickup_locations" |
95 |
$ref: "./paths/biblios.yaml#/~1biblios~1{biblio_id}~1pickup_locations" |
96 |
"/cash_registers/{cash_register_id}/cashups": |
96 |
"/cash_registers/{cash_register_id}/cashups": |
97 |
$ref: "paths/cash_registers.yaml#/~1cash_registers~1{cash_register_id}~1cashups" |
97 |
$ref: "./paths/cash_registers.yaml#/~1cash_registers~1{cash_register_id}~1cashups" |
98 |
"/cashups/{cashup_id}": |
98 |
"/cashups/{cashup_id}": |
99 |
$ref: "paths/cash_registers.yaml#/~1cashups~1{cashup_id}" |
99 |
$ref: "./paths/cash_registers.yaml#/~1cashups~1{cashup_id}" |
100 |
/checkouts: |
100 |
/checkouts: |
101 |
$ref: paths/checkouts.yaml#/~1checkouts |
101 |
$ref: ./paths/checkouts.yaml#/~1checkouts |
102 |
"/checkouts/{checkout_id}": |
102 |
"/checkouts/{checkout_id}": |
103 |
$ref: "paths/checkouts.yaml#/~1checkouts~1{checkout_id}" |
103 |
$ref: "./paths/checkouts.yaml#/~1checkouts~1{checkout_id}" |
104 |
"/checkouts/{checkout_id}/allows_renewal": |
104 |
"/checkouts/{checkout_id}/allows_renewal": |
105 |
$ref: "paths/checkouts.yaml#/~1checkouts~1{checkout_id}~1allows_renewal" |
105 |
$ref: "./paths/checkouts.yaml#/~1checkouts~1{checkout_id}~1allows_renewal" |
106 |
"/checkouts/{checkout_id}/renewal": |
106 |
"/checkouts/{checkout_id}/renewal": |
107 |
$ref: "paths/checkouts.yaml#/~1checkouts~1{checkout_id}~1renewal" |
107 |
$ref: "./paths/checkouts.yaml#/~1checkouts~1{checkout_id}~1renewal" |
108 |
/circulation-rules/kinds: |
108 |
/circulation-rules/kinds: |
109 |
$ref: paths/circulation-rules.yaml#/~1circulation-rules~1kinds |
109 |
$ref: ./paths/circulation-rules.yaml#/~1circulation-rules~1kinds |
110 |
/cities: |
110 |
/cities: |
111 |
$ref: paths/cities.yaml#/~1cities |
111 |
$ref: ./paths/cities.yaml#/~1cities |
112 |
"/cities/{city_id}": |
112 |
"/cities/{city_id}": |
113 |
$ref: "paths/cities.yaml#/~1cities~1{city_id}" |
113 |
$ref: "./paths/cities.yaml#/~1cities~1{city_id}" |
114 |
"/clubs/{club_id}/holds": |
114 |
"/clubs/{club_id}/holds": |
115 |
$ref: "paths/clubs.yaml#/~1clubs~1{club_id}~1holds" |
115 |
$ref: "./paths/clubs.yaml#/~1clubs~1{club_id}~1holds" |
116 |
/config/smtp_servers: |
116 |
/config/smtp_servers: |
117 |
$ref: paths/config_smtp_servers.yaml#/~1config~1smtp_servers |
117 |
$ref: ./paths/config_smtp_servers.yaml#/~1config~1smtp_servers |
118 |
"/config/smtp_servers/{smtp_server_id}": |
118 |
"/config/smtp_servers/{smtp_server_id}": |
119 |
$ref: "paths/config_smtp_servers.yaml#/~1config~1smtp_servers~1{smtp_server_id}" |
119 |
$ref: "./paths/config_smtp_servers.yaml#/~1config~1smtp_servers~1{smtp_server_id}" |
120 |
/holds: |
120 |
/holds: |
121 |
$ref: paths/holds.yaml#/~1holds |
121 |
$ref: ./paths/holds.yaml#/~1holds |
122 |
"/holds/{hold_id}": |
122 |
"/holds/{hold_id}": |
123 |
$ref: "paths/holds.yaml#/~1holds~1{hold_id}" |
123 |
$ref: "./paths/holds.yaml#/~1holds~1{hold_id}" |
124 |
"/holds/{hold_id}/pickup_location": |
124 |
"/holds/{hold_id}/pickup_location": |
125 |
$ref: "paths/holds.yaml#/~1holds~1{hold_id}~1pickup_location" |
125 |
$ref: "./paths/holds.yaml#/~1holds~1{hold_id}~1pickup_location" |
126 |
"/holds/{hold_id}/pickup_locations": |
126 |
"/holds/{hold_id}/pickup_locations": |
127 |
$ref: "paths/holds.yaml#/~1holds~1{hold_id}~1pickup_locations" |
127 |
$ref: "./paths/holds.yaml#/~1holds~1{hold_id}~1pickup_locations" |
128 |
"/holds/{hold_id}/priority": |
128 |
"/holds/{hold_id}/priority": |
129 |
$ref: "paths/holds.yaml#/~1holds~1{hold_id}~1priority" |
129 |
$ref: "./paths/holds.yaml#/~1holds~1{hold_id}~1priority" |
130 |
"/holds/{hold_id}/suspension": |
130 |
"/holds/{hold_id}/suspension": |
131 |
$ref: "paths/holds.yaml#/~1holds~1{hold_id}~1suspension" |
131 |
$ref: "./paths/holds.yaml#/~1holds~1{hold_id}~1suspension" |
132 |
/ill_backends: |
132 |
/ill_backends: |
133 |
$ref: paths/ill_backends.yaml#/~1ill_backends |
133 |
$ref: ./paths/ill_backends.yaml#/~1ill_backends |
134 |
"/ill_backends/{ill_backend_id}": |
134 |
"/ill_backends/{ill_backend_id}": |
135 |
$ref: "paths/ill_backends.yaml#/~1ill_backends~1{ill_backend_id}" |
135 |
$ref: "./paths/ill_backends.yaml#/~1ill_backends~1{ill_backend_id}" |
136 |
/illrequests: |
136 |
/illrequests: |
137 |
$ref: paths/illrequests.yaml#/~1illrequests |
137 |
$ref: ./paths/illrequests.yaml#/~1illrequests |
138 |
/import_batch_profiles: |
138 |
/import_batch_profiles: |
139 |
$ref: paths/import_batch_profiles.yaml#/~1import_batch_profiles |
139 |
$ref: ./paths/import_batch_profiles.yaml#/~1import_batch_profiles |
140 |
"/import_batch_profiles/{import_batch_profile_id}": |
140 |
"/import_batch_profiles/{import_batch_profile_id}": |
141 |
$ref: "paths/import_batch_profiles.yaml#/~1import_batch_profiles~1{import_batch_profile_id}" |
141 |
$ref: "./paths/import_batch_profiles.yaml#/~1import_batch_profiles~1{import_batch_profile_id}" |
142 |
/items: |
142 |
/items: |
143 |
$ref: paths/items.yaml#/~1items |
143 |
$ref: ./paths/items.yaml#/~1items |
144 |
"/items/{item_id}": |
144 |
"/items/{item_id}": |
145 |
$ref: "paths/items.yaml#/~1items~1{item_id}" |
145 |
$ref: "./paths/items.yaml#/~1items~1{item_id}" |
146 |
"/items/{item_id}/pickup_locations": |
146 |
"/items/{item_id}/pickup_locations": |
147 |
$ref: "paths/items.yaml#/~1items~1{item_id}~1pickup_locations" |
147 |
$ref: "./paths/items.yaml#/~1items~1{item_id}~1pickup_locations" |
148 |
/libraries: |
148 |
/libraries: |
149 |
$ref: paths/libraries.yaml#/~1libraries |
149 |
$ref: ./paths/libraries.yaml#/~1libraries |
150 |
"/libraries/{library_id}": |
150 |
"/libraries/{library_id}": |
151 |
$ref: "paths/libraries.yaml#/~1libraries~1{library_id}" |
151 |
$ref: "./paths/libraries.yaml#/~1libraries~1{library_id}" |
152 |
/oauth/token: |
152 |
/oauth/token: |
153 |
$ref: paths/oauth.yaml#/~1oauth~1token |
153 |
$ref: ./paths/oauth.yaml#/~1oauth~1token |
154 |
/patrons: |
154 |
/patrons: |
155 |
$ref: paths/patrons.yaml#/~1patrons |
155 |
$ref: ./paths/patrons.yaml#/~1patrons |
156 |
"/patrons/{patron_id}": |
156 |
"/patrons/{patron_id}": |
157 |
$ref: "paths/patrons.yaml#/~1patrons~1{patron_id}" |
157 |
$ref: "./paths/patrons.yaml#/~1patrons~1{patron_id}" |
158 |
"/patrons/{patron_id}/account": |
158 |
"/patrons/{patron_id}/account": |
159 |
$ref: "paths/patrons_account.yaml#/~1patrons~1{patron_id}~1account" |
159 |
$ref: "./paths/patrons_account.yaml#/~1patrons~1{patron_id}~1account" |
160 |
"/patrons/{patron_id}/account/credits": |
160 |
"/patrons/{patron_id}/account/credits": |
161 |
$ref: "paths/patrons_account.yaml#/~1patrons~1{patron_id}~1account~1credits" |
161 |
$ref: "./paths/patrons_account.yaml#/~1patrons~1{patron_id}~1account~1credits" |
162 |
"/patrons/{patron_id}/extended_attributes": |
162 |
"/patrons/{patron_id}/extended_attributes": |
163 |
$ref: "paths/patrons_extended_attributes.yaml#/~1patrons~1{patron_id}~1extended_attributes" |
163 |
$ref: "./paths/patrons_extended_attributes.yaml#/~1patrons~1{patron_id}~1extended_attributes" |
164 |
"/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": |
164 |
"/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": |
165 |
$ref: "paths/patrons_extended_attributes.yaml#/~1patrons~1{patron_id}~1extended_attributes~1{extended_attribute_id}" |
165 |
$ref: "./paths/patrons_extended_attributes.yaml#/~1patrons~1{patron_id}~1extended_attributes~1{extended_attribute_id}" |
166 |
"/patrons/{patron_id}/holds": |
166 |
"/patrons/{patron_id}/holds": |
167 |
$ref: "paths/patrons_holds.yaml#/~1patrons~1{patron_id}~1holds" |
167 |
$ref: "./paths/patrons_holds.yaml#/~1patrons~1{patron_id}~1holds" |
168 |
"/patrons/{patron_id}/password": |
168 |
"/patrons/{patron_id}/password": |
169 |
$ref: "paths/patrons_password.yaml#/~1patrons~1{patron_id}~1password" |
169 |
$ref: "./paths/patrons_password.yaml#/~1patrons~1{patron_id}~1password" |
170 |
"/public/biblios/{biblio_id}": |
170 |
"/public/biblios/{biblio_id}": |
171 |
$ref: "paths/biblios.yaml#/~1public~1biblios~1{biblio_id}" |
171 |
$ref: "./paths/biblios.yaml#/~1public~1biblios~1{biblio_id}" |
172 |
"/public/biblios/{biblio_id}/items": |
172 |
"/public/biblios/{biblio_id}/items": |
173 |
$ref: "paths/biblios.yaml#/~1public~1biblios~1{biblio_id}~1items" |
173 |
$ref: "./paths/biblios.yaml#/~1public~1biblios~1{biblio_id}~1items" |
174 |
/public/libraries: |
174 |
/public/libraries: |
175 |
$ref: paths/libraries.yaml#/~1public~1libraries |
175 |
$ref: ./paths/libraries.yaml#/~1public~1libraries |
176 |
"/public/libraries/{library_id}": |
176 |
"/public/libraries/{library_id}": |
177 |
$ref: "paths/libraries.yaml#/~1public~1libraries~1{library_id}" |
177 |
$ref: "./paths/libraries.yaml#/~1public~1libraries~1{library_id}" |
178 |
"/public/patrons/{patron_id}/article_requests/{article_request_id}": |
178 |
"/public/patrons/{patron_id}/article_requests/{article_request_id}": |
179 |
$ref: "paths/article_requests.yaml#/~1public~1patrons~1{patron_id}~1article_requests~1{article_request_id}" |
179 |
$ref: "./paths/article_requests.yaml#/~1public~1patrons~1{patron_id}~1article_requests~1{article_request_id}" |
180 |
"/public/patrons/{patron_id}/guarantors/can_see_charges": |
180 |
"/public/patrons/{patron_id}/guarantors/can_see_charges": |
181 |
$ref: "paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_charges" |
181 |
$ref: "./paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_charges" |
182 |
"/public/patrons/{patron_id}/guarantors/can_see_checkouts": |
182 |
"/public/patrons/{patron_id}/guarantors/can_see_checkouts": |
183 |
$ref: "paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_checkouts" |
183 |
$ref: "./paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_checkouts" |
184 |
"/public/patrons/{patron_id}/password": |
184 |
"/public/patrons/{patron_id}/password": |
185 |
$ref: "paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1password" |
185 |
$ref: "./paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1password" |
186 |
/quotes: |
186 |
/quotes: |
187 |
$ref: paths/quotes.yaml#/~1quotes |
187 |
$ref: ./paths/quotes.yaml#/~1quotes |
188 |
"/quotes/{quote_id}": |
188 |
"/quotes/{quote_id}": |
189 |
$ref: "paths/quotes.yaml#/~1quotes~1{quote_id}" |
189 |
$ref: "./paths/quotes.yaml#/~1quotes~1{quote_id}" |
190 |
/return_claims: |
190 |
/return_claims: |
191 |
$ref: paths/return_claims.yaml#/~1return_claims |
191 |
$ref: ./paths/return_claims.yaml#/~1return_claims |
192 |
"/return_claims/{claim_id}": |
192 |
"/return_claims/{claim_id}": |
193 |
$ref: "paths/return_claims.yaml#/~1return_claims~1{claim_id}" |
193 |
$ref: "./paths/return_claims.yaml#/~1return_claims~1{claim_id}" |
194 |
"/return_claims/{claim_id}/notes": |
194 |
"/return_claims/{claim_id}/notes": |
195 |
$ref: "paths/return_claims.yaml#/~1return_claims~1{claim_id}~1notes" |
195 |
$ref: "./paths/return_claims.yaml#/~1return_claims~1{claim_id}~1notes" |
196 |
"/return_claims/{claim_id}/resolve": |
196 |
"/return_claims/{claim_id}/resolve": |
197 |
$ref: "paths/return_claims.yaml#/~1return_claims~1{claim_id}~1resolve" |
197 |
$ref: "./paths/return_claims.yaml#/~1return_claims~1{claim_id}~1resolve" |
198 |
"/rotas/{rota_id}/stages/{stage_id}/position": |
198 |
"/rotas/{rota_id}/stages/{stage_id}/position": |
199 |
$ref: "paths/rotas.yaml#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position" |
199 |
$ref: "./paths/rotas.yaml#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position" |
200 |
/suggestions: |
200 |
/suggestions: |
201 |
$ref: paths/suggestions.yaml#/~1suggestions |
201 |
$ref: ./paths/suggestions.yaml#/~1suggestions |
202 |
"/suggestions/{suggestion_id}": |
202 |
"/suggestions/{suggestion_id}": |
203 |
$ref: "paths/suggestions.yaml#/~1suggestions~1{suggestion_id}" |
203 |
$ref: "./paths/suggestions.yaml#/~1suggestions~1{suggestion_id}" |
204 |
/transfer_limits: |
204 |
/transfer_limits: |
205 |
$ref: paths/transfer_limits.yaml#/~1transfer_limits |
205 |
$ref: ./paths/transfer_limits.yaml#/~1transfer_limits |
206 |
/transfer_limits/batch: |
206 |
/transfer_limits/batch: |
207 |
$ref: paths/transfer_limits.yaml#/~1transfer_limits~1batch |
207 |
$ref: ./paths/transfer_limits.yaml#/~1transfer_limits~1batch |
208 |
"/transfer_limits/{limit_id}": |
208 |
"/transfer_limits/{limit_id}": |
209 |
$ref: "paths/transfer_limits.yaml#/~1transfer_limits~1{limit_id}" |
209 |
$ref: "./paths/transfer_limits.yaml#/~1transfer_limits~1{limit_id}" |
|
|
210 |
parameters: |
211 |
advancededitormacro_id_pp: |
212 |
description: Advanced editor macro internal identifier |
213 |
in: path |
214 |
name: advancededitormacro_id |
215 |
required: true |
216 |
type: integer |
217 |
biblio_id_pp: |
218 |
description: Record internal identifier |
219 |
in: path |
220 |
name: biblio_id |
221 |
required: true |
222 |
type: integer |
223 |
cash_register_id_pp: |
224 |
description: Cash register internal identifier |
225 |
in: path |
226 |
name: cash_register_id |
227 |
required: true |
228 |
type: integer |
229 |
cashup_id_pp: |
230 |
description: Cashup internal identifier |
231 |
in: path |
232 |
name: cashup_id |
233 |
required: true |
234 |
type: integer |
235 |
checkout_id_pp: |
236 |
description: Internal checkout identifier |
237 |
in: path |
238 |
name: checkout_id |
239 |
required: true |
240 |
type: integer |
241 |
city_id_pp: |
242 |
description: City internal identifier |
243 |
in: path |
244 |
name: city_id |
245 |
required: true |
246 |
type: integer |
247 |
club_id_pp: |
248 |
description: Internal club identifier |
249 |
in: path |
250 |
name: club_id |
251 |
required: true |
252 |
type: integer |
253 |
fund_id_pp: |
254 |
description: Fund id |
255 |
in: path |
256 |
name: fund_id |
257 |
required: true |
258 |
type: integer |
259 |
hold_id_pp: |
260 |
description: Internal hold identifier |
261 |
in: path |
262 |
name: hold_id |
263 |
required: true |
264 |
type: integer |
265 |
import_batch_profile_id_pp: |
266 |
description: Internal profile identifier |
267 |
in: path |
268 |
name: import_batch_profile_id |
269 |
required: true |
270 |
type: integer |
271 |
item_id_pp: |
272 |
description: Internal item identifier |
273 |
in: path |
274 |
name: item_id |
275 |
required: true |
276 |
type: integer |
277 |
library_id_pp: |
278 |
description: Internal library identifier |
279 |
in: path |
280 |
name: library_id |
281 |
required: true |
282 |
type: string |
283 |
match: |
284 |
description: Matching criteria |
285 |
enum: |
286 |
- contains |
287 |
- exact |
288 |
- starts_with |
289 |
- ends_with |
290 |
in: query |
291 |
name: _match |
292 |
required: false |
293 |
type: string |
294 |
order_by: |
295 |
collectionFormat: csv |
296 |
description: Sorting criteria |
297 |
in: query |
298 |
items: |
299 |
type: string |
300 |
name: _order_by |
301 |
required: false |
302 |
type: array |
303 |
order_id_pp: |
304 |
description: Internal order identifier |
305 |
in: path |
306 |
name: order_id |
307 |
required: true |
308 |
type: integer |
309 |
page: |
310 |
description: "Page number, for paginated object listing" |
311 |
in: query |
312 |
name: _page |
313 |
required: false |
314 |
type: integer |
315 |
patron_id_pp: |
316 |
description: Internal patron identifier |
317 |
in: path |
318 |
name: patron_id |
319 |
required: true |
320 |
type: integer |
321 |
patron_id_qp: |
322 |
description: Internal patron identifier |
323 |
in: query |
324 |
name: patron_id |
325 |
type: integer |
326 |
per_page: |
327 |
description: "Page size, for paginated object listing" |
328 |
in: query |
329 |
name: _per_page |
330 |
required: false |
331 |
type: integer |
332 |
q_body: |
333 |
description: Query filter sent through request"s body |
334 |
in: body |
335 |
name: query |
336 |
required: false |
337 |
schema: |
338 |
type: object |
339 |
q_header: |
340 |
description: Query filter sent as a request header |
341 |
in: header |
342 |
name: x-koha-query |
343 |
required: false |
344 |
type: string |
345 |
q_param: |
346 |
description: Query filter sent as a request parameter |
347 |
in: query |
348 |
name: q |
349 |
required: false |
350 |
type: string |
351 |
quote_id_pp: |
352 |
description: Quote internal identifier |
353 |
in: path |
354 |
name: quote_id |
355 |
required: true |
356 |
type: integer |
357 |
seen_pp: |
358 |
description: Item was seen flag |
359 |
in: query |
360 |
name: seen |
361 |
required: false |
362 |
type: integer |
363 |
smtp_server_id_pp: |
364 |
description: SMTP server internal identifier |
365 |
in: path |
366 |
name: smtp_server_id |
367 |
required: true |
368 |
type: integer |
369 |
suggestion_id_pp: |
370 |
description: Internal suggestion identifier |
371 |
in: path |
372 |
name: suggestion_id |
373 |
required: true |
374 |
type: integer |
375 |
transfer_limit_id_pp: |
376 |
description: Internal transfer limit identifier |
377 |
in: path |
378 |
name: limit_id |
379 |
required: true |
380 |
type: string |
381 |
vendor_id_pp: |
382 |
description: Vendor id |
383 |
in: path |
384 |
name: vendor_id |
385 |
required: true |
386 |
type: integer |
210 |
info: |
387 |
info: |
211 |
title: Koha REST API |
388 |
title: Koha REST API |
212 |
version: 1 |
389 |
version: 1 |
Lines 218-292
info:
Link Here
|
218 |
url: https://koha-community.org/ |
395 |
url: https://koha-community.org/ |
219 |
description: | |
396 |
description: | |
220 |
## Introduction |
397 |
## Introduction |
221 |
|
398 |
|
222 |
This API is documented in **OpenAPI format**. |
399 |
This API is documented in **OpenAPI format**. |
223 |
|
400 |
|
224 |
## Authentication |
401 |
## Authentication |
225 |
|
402 |
|
226 |
The API supports the following authentication mechanisms |
403 |
The API supports the following authentication mechanisms |
227 |
|
404 |
|
228 |
* HTTP Basic authentication |
405 |
* HTTP Basic authentication |
229 |
* OAuth2 (client credentials grant) |
406 |
* OAuth2 (client credentials grant) |
230 |
* Cookie-based |
407 |
* Cookie-based |
231 |
|
408 |
|
232 |
Both _Basic authentication_ and the _OAuth2_ flow, need to be enabled |
409 |
Both _Basic authentication_ and the _OAuth2_ flow, need to be enabled |
233 |
by system preferences. |
410 |
by system preferences. |
234 |
|
411 |
|
235 |
## Errors |
412 |
## Errors |
236 |
|
413 |
|
237 |
The API uses standard HTTP status codes to indicate the success or failure |
414 |
The API uses standard HTTP status codes to indicate the success or failure |
238 |
of the API call. The body of the response will be JSON in the following format: |
415 |
of the API call. The body of the response will be JSON in the following format: |
239 |
|
416 |
|
240 |
``` |
417 |
``` |
241 |
{ |
418 |
{ |
242 |
"error": "Current settings prevent the passed due date to be applied", |
419 |
"error": "Current settings prevent the passed due date to be applied", |
243 |
"error_code": "invalid_due_date" |
420 |
"error_code": "invalid_due_date" |
244 |
} |
421 |
} |
245 |
``` |
422 |
``` |
246 |
|
423 |
|
247 |
Note: Some routes might offer additional attributes in their error responses but that"s |
424 |
Note: Some routes might offer additional attributes in their error responses but that"s |
248 |
subject to change and thus not documented. |
425 |
subject to change and thus not documented. |
249 |
|
426 |
|
250 |
## Filtering responses |
427 |
## Filtering responses |
251 |
|
428 |
|
252 |
The API allows for some advanced response filtering using a JSON based query syntax. The |
429 |
The API allows for some advanced response filtering using a JSON based query syntax. The |
253 |
query can be added to the requests: |
430 |
query can be added to the requests: |
254 |
|
431 |
|
255 |
* as a query parameter `q=` |
432 |
* as a query parameter `q=` |
256 |
* in the request body |
433 |
* in the request body |
257 |
* in a special header `x-koha-query` |
434 |
* in a special header `x-koha-query` |
258 |
|
435 |
|
259 |
For simple field equality matches we can use `{ "fieldname": "value" }` where the fieldname |
436 |
For simple field equality matches we can use `{ "fieldname": "value" }` where the fieldname |
260 |
matches one of the fields as described in the particular endpoints response object. |
437 |
matches one of the fields as described in the particular endpoints response object. |
261 |
|
438 |
|
262 |
We can refine that with more complex matching clauses by nesting a the clause into the |
439 |
We can refine that with more complex matching clauses by nesting a the clause into the |
263 |
object; `{ "fieldname": { "clause": "value" } }`. |
440 |
object; `{ "fieldname": { "clause": "value" } }`. |
264 |
|
441 |
|
265 |
Available matching clauses include ">", "<", ">=", "<=", "-like", and "-not_like". |
442 |
Available matching clauses include ">", "<", ">=", "<=", "-like", and "-not_like". |
266 |
|
443 |
|
267 |
We can filter on multiple fields by adding them to the JSON respresentation. Adding at `HASH` |
444 |
We can filter on multiple fields by adding them to the JSON respresentation. Adding at `HASH` |
268 |
level will result in an "AND" query, whilst combinding them in an `ARRAY` wilth result in an |
445 |
level will result in an "AND" query, whilst combinding them in an `ARRAY` wilth result in an |
269 |
"OR" query: `{ "field1": "value2", "field2": "value2" }` will filter the response to only those |
446 |
"OR" query: `{ "field1": "value2", "field2": "value2" }` will filter the response to only those |
270 |
results with both field1 containing value2 AND field2 containing value2 for example. |
447 |
results with both field1 containing value2 AND field2 containing value2 for example. |
271 |
|
448 |
|
272 |
### Examples |
449 |
### Examples |
273 |
|
450 |
|
274 |
The following request would return any patron with firstname "Henry" and lastname "Acevedo"; |
451 |
The following request would return any patron with firstname "Henry" and lastname "Acevedo"; |
275 |
|
452 |
|
276 |
`curl -u koha:koha --request GET "http://127.0.0.1:8081/api/v1/patrons/" --data-raw "{ "surname": "Acevedo", "firstname": "Henry" }"` |
453 |
`curl -u koha:koha --request GET "http://127.0.0.1:8081/api/v1/patrons/" --data-raw "{ "surname": "Acevedo", "firstname": "Henry" }"` |
277 |
|
454 |
|
278 |
The following request would return any patron whose lastname begins with "Ace"; |
455 |
The following request would return any patron whose lastname begins with "Ace"; |
279 |
|
456 |
|
280 |
`curl -u koha:koha --request GET "http://127.0.0.1:8081/api/v1/patrons/" --data-raw "{ "surname": { "-like": "Ace%" }"` |
457 |
`curl -u koha:koha --request GET "http://127.0.0.1:8081/api/v1/patrons/" --data-raw "{ "surname": { "-like": "Ace%" }"` |
281 |
|
458 |
|
282 |
The following request would return any patron whilse lastname is "Acevedo" OR "Bernardo" |
459 |
The following request would return any patron whilse lastname is "Acevedo" OR "Bernardo" |
283 |
|
460 |
|
284 |
`curl -u koha:koha --request GET "http://127.0.0.1:8081/api/v1/patrons/" --data-raw "{ "surname": [ "Acevedo", "Bernardo" ] }"` |
461 |
`curl -u koha:koha --request GET "http://127.0.0.1:8081/api/v1/patrons/" --data-raw "{ "surname": [ "Acevedo", "Bernardo" ] }"` |
285 |
|
462 |
|
286 |
## Special headers |
463 |
## Special headers |
287 |
|
464 |
|
288 |
### x-koha-library |
465 |
### x-koha-library |
289 |
|
466 |
|
290 |
This optional header should be passed to give your api request a library |
467 |
This optional header should be passed to give your api request a library |
291 |
context; If it is not included in the request, then the request context |
468 |
context; If it is not included in the request, then the request context |
292 |
will default to using your api comsumer"s assigned home library. |
469 |
will default to using your api comsumer"s assigned home library. |