bark-rest: add notification long polling endpoint
- 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
- Added long-poll REST endpoint (
GET /api/v1/notifications/wait) for wallet notifications, with optionalsincefiltering and responses containingnotificationsandlast_pushed_atfor resumable polling.
- Added long-poll REST endpoint (
- API Improvements
- Added support for
422 Unprocessable Entityresponses for invalid/unsupported request inputs.
- Added support for
- Documentation
- Updated OpenAPI spec and REST client docs/models to include the new endpoint and
WaitNotificationResponse.
- Updated OpenAPI spec and REST client docs/models to include the new endpoint and
- Tests
- Added long-poll integration tests verifying authenticated delivery,
last_pushed_at, and unauthenticated401behavior.
- Added long-poll integration tests verifying authenticated delivery,
- Refactor
- Improved server shutdown coordination to shut down components consistently.
Edited by coderabbit