Bug 34742 - api/v1/swagger/swagger.yaml examples are not up to date with wiki
Summary: api/v1/swagger/swagger.yaml examples are not up to date with wiki
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-08 00:07 UTC by Fridolin Somers
Modified: 2023-09-08 00:11 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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%" } }'