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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to