Bug 34742

Summary: api/v1/swagger/swagger.yaml examples are not up to date with wiki
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32637
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Fridolin Somers 2023-09-08 00:07:14 UTC
I see there is some doc and examples in api/v1/swagger/swagger.yaml :
https://git.koha-community.org/Koha-community/Koha/src/commit/93dd749ecaf229a8860ba078668190e5bbfd61c6/api/v1/swagger/swagger.yaml#L748

But it is not up to date with wiki doc https://wiki.koha-community.org/wiki/Koha_REST_API_Users_Guide#Basic_Matching
See note about Bug 32637

Do we update or replace with a link to wiki page ?
Comment 1 Fridolin Somers 2023-09-08 00:11:39 UTC
I think there is also a typo in :
  --data-raw '{ "surname": { "-like": "Ace%" }'
Should be :
  --data-raw '{ "surname": { "-like": "Ace%" } }'