bark-rest: filter wallet history by payment method
- check or remove this line after you've added a CHANGELOG entry or if your PR doesn't need one (they should go into
CHANGELOG/unreleased/)
Summary by CodeRabbit
-
New Features
- Wallet history (
GET /api/v1/history) can now be filtered by payment method using optionaltypeandvaluequery parameters. - When both are provided, the response includes only matching movements; otherwise, it returns the full history.
- Wallet history (
-
Bug Fixes
- Requests that provide only one filter parameter are now rejected with a clear bad request response (
400). - Client documentation and API specifications now reflect the new filtering behavior.
- Requests that provide only one filter parameter are now rejected with a clear bad request response (
Edited by coderabbit