Bug 22000

Summary: Remove extraneous parameters from API route spec
Product: Koha Reporter: Andrew Isherwood <bugzilla>
Component: ILLAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: trivial    
Priority: P5 - low CC: lari.taskula, martin.renvoize
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22440
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 22000: Add unit test

Description Andrew Isherwood 2018-12-14 14:47:05 UTC
As noted in https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21460#c9 the "get" route definition makes reference to a bunch of query parameters that have no handling in the endpoint controller. We should remove these.
Comment 1 Lari Taskula 2022-02-17 22:12:18 UTC
I don't think we should remove the parameters, but rather make them work. Someone may find these parameters useful.
Comment 2 Lari Taskula 2022-02-17 22:12:53 UTC
Created attachment 130775 [details] [review]
Bug 22000: Add unit test

To test:
1. prove t/db_dependent/api/v1/illrequests.t
2. Observe test failure
t/db_dependent/api/v1/illrequests.t ..
    #   Failed test 'exact match for JSON Pointer ""'
    #   at t/db_dependent/api/v1/illrequests.t line 163.
...
Comment 3 Katrin Fischer 2023-01-13 10:37:10 UTC
Not sure about this one and I believe the API has seen some changes since this was filed. Could one of our API experts check?