4 x-mojo-to: Suggestions#list
5 operationId: listSuggestions
6 description: This resource returns a list of purchase suggestions
7 summary: List purchase suggestions
11 - $ref: "../swagger.yaml#/parameters/match"
12 - $ref: "../swagger.yaml#/parameters/order_by"
13 - $ref: "../swagger.yaml#/parameters/page"
14 - $ref: "../swagger.yaml#/parameters/per_page"
15 - $ref: "../swagger.yaml#/parameters/q_param"
16 - $ref: "../swagger.yaml#/parameters/q_body"
17 - $ref: "../swagger.yaml#/parameters/q_header"
22 description: A list of suggestions
26 $ref: "../swagger.yaml#/definitions/suggestion"
28 description: Access forbidden
30 $ref: "../swagger.yaml#/definitions/error"
33 Internal server error. Possible `error_code` attribute values:
35 * `internal_server_error`
37 $ref: "../swagger.yaml#/definitions/error"
39 description: Under maintenance
41 $ref: "../swagger.yaml#/definitions/error"
44 suggestions: suggestions_manage
46 x-mojo-to: Suggestions#add
47 operationId: addSuggestions
48 description: This resource accepts a new purchase suggestion and creates it
49 summary: Add a purchase suggestion
55 description: A JSON object containing informations about the new suggestion
58 $ref: "../swagger.yaml#/definitions/suggestion"
63 description: Suggestion added
65 $ref: "../swagger.yaml#/definitions/suggestion"
67 description: Bad request
69 $ref: "../swagger.yaml#/definitions/error"
71 description: Access forbidden
73 $ref: "../swagger.yaml#/definitions/error"
76 Internal server error. Possible `error_code` attribute values:
78 * `internal_server_error`
80 $ref: "../swagger.yaml#/definitions/error"
82 description: Under maintenance
84 $ref: "../swagger.yaml#/definitions/error"
87 suggestions: suggestions_manage
88 "/suggestions/{suggestion_id}":
90 x-mojo-to: Suggestions#get
91 operationId: getSuggestion
92 description: This resource gives access to a specific purchase suggestion
93 summary: Get purchase suggestion
97 - $ref: "../swagger.yaml#/parameters/suggestion_id_pp"
102 description: A suggestion
104 $ref: "../swagger.yaml#/definitions/suggestion"
106 description: Access forbidden
108 $ref: "../swagger.yaml#/definitions/error"
110 description: Suggestion not found
112 $ref: "../swagger.yaml#/definitions/error"
115 Internal server error. Possible `error_code` attribute values:
117 * `internal_server_error`
119 $ref: "../swagger.yaml#/definitions/error"
121 description: Under maintenance
123 $ref: "../swagger.yaml#/definitions/error"
124 x-koha-authorization:
126 suggestions: suggestions_manage
128 x-mojo-to: Suggestions#update
129 operationId: updateSuggestion
130 description: This resource allows updating an existing purchase suggestion
131 summary: Update purchase suggestion
135 - $ref: "../swagger.yaml#/parameters/suggestion_id_pp"
138 description: A JSON object containing informations about the new hold
141 $ref: "../swagger.yaml#/definitions/suggestion"
146 description: A suggestion
148 $ref: "../swagger.yaml#/definitions/suggestion"
150 description: Bad request
152 $ref: "../swagger.yaml#/definitions/error"
154 description: Access forbidden
156 $ref: "../swagger.yaml#/definitions/error"
158 description: Suggestion not found
160 $ref: "../swagger.yaml#/definitions/error"
163 Internal server error. Possible `error_code` attribute values:
165 * `internal_server_error`
167 $ref: "../swagger.yaml#/definitions/error"
169 description: Under maintenance
171 $ref: "../swagger.yaml#/definitions/error"
172 x-koha-authorization:
174 suggestions: suggestions_manage
176 x-mojo-to: Suggestions#delete
177 operationId: deleteSuggestion
178 description: This resource deletes an existing purchase suggestion
179 summary: Delete purchase suggestion
183 - $ref: "../swagger.yaml#/parameters/suggestion_id_pp"
188 description: Suggestion deleted
192 description: Authentication required
194 $ref: "../swagger.yaml#/definitions/error"
196 description: Access forbidden
198 $ref: "../swagger.yaml#/definitions/error"
200 description: Suggestion not found
202 $ref: "../swagger.yaml#/definitions/error"
205 Internal server error. Possible `error_code` attribute values:
207 * `internal_server_error`
209 $ref: "../swagger.yaml#/definitions/error"
211 description: Under maintenance
213 $ref: "../swagger.yaml#/definitions/error"
214 x-koha-authorization:
216 suggestions: suggestions_manage
217 /suggestions/managers:
219 x-mojo-to: Suggestions#list_managers
220 operationId: listSuggestionsManagers
221 description: This resource returns a list of patron allowed to be a manager for suggestions
222 summary: List possibe managers for suggestions
226 - $ref: ../parameters.yaml#/match
227 - $ref: ../parameters.yaml#/order_by
228 - $ref: ../parameters.yaml#/page
229 - $ref: ../parameters.yaml#/per_page
230 - $ref: ../parameters.yaml#/q_param
231 - $ref: ../parameters.yaml#/q_body
232 - $ref: ../parameters.yaml#/q_header
237 description: A list of suggestions' managers
241 $ref: ../definitions.yaml#/patron
243 description: Access forbidden
245 $ref: ../definitions.yaml#/error
248 Internal server error. Possible `error_code` attribute values:
250 * `internal_server_error`
252 $ref: ../definitions.yaml#/error
254 description: Under maintenance
256 $ref: ../definitions.yaml#/error
257 x-koha-authorization:
259 suggestions: suggestions_manage
261 - extended_attributes