[Koha-bugs] [Bug 32942] New: Suggestion API is broken
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 10 16:11:33 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32942
Bug ID: 32942
Summary: Suggestion API is broken
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: REST API
Assignee: koha-bugs at lists.koha-community.org
Reporter: arthur.suzuki at biblibre.com
CC: tomascohen at gmail.com
To reproduce, create a couple of suggestion and set them to status either blank
or "ORDERED".
Query the api to fetch all the suggestions :
https://[your koha]/api/v1/suggestions
If any of the suggestion you would like to get with a query has no status, or
not within fixed list of values, you would get this error message :
<pre>
{"errors":[{"message":"Not in enum list: ASKED, CHECKED, ACCEPTED,
REJECTED.","path":"\/1\/status"}],"status":200}
</pre>
A suggestion may also have status "ORDERED" which is not in the list, or no
status at all.
API should not throw this error on status and give the other details for the
suggestion instead.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list