Matt Jankowski
66326065b0
Add `response.content_type` checks for JSON to `api/v1` request specs ( #31981 )
2 years ago
Matt Jankowski
6b6a80b407
Remove `body_as_json` in favor of built-in `response.parsed_body` for JSON response specs ( #31749 )
2 years ago
Matt Jankowski
f1003b2560
Enable "zero monkey patching" mode in RSpec ( #31614 )
2 years ago
Emelia Smith
4655be0da6
Fix add validation to webpush subscription keys ( #30542 )
2 years ago
Emelia Smith
eef2cc054f
Add url validation to Web::PushSubscription endpoints ( #30540 )
2 years ago
Matt Jankowski
24319836de
Convert request-based setup into factory setup in push/subscriptions request spec ( #29489 )
2 years ago
Matt Jankowski
18945f62e0
Convert more API specs from controller->request style ( #29004 )
2 years ago
Nick Schonning
5179c47087
Autofix Rubocops RSpec/ScatteredLet ( #23725 )
3 years ago
Nick Schonning
5069769cbe
Autofix Rubocop Style/TrailingCommaInHashLiteral ( #23693 )
3 years ago
Claire
448be26b34
Add missing `policy` attribute to `WebPushSubscriptionSerializer` ( #23210 )
...
* Add missing `policy` attribute to `WebPushSubscriptionSerializer`
Fixes #23145
* Add tests
3 years ago
Eugen Rochko
ce2148c571
Add `policy` param to `POST /api/v1/push/subscriptions` ( #16040 )
...
With possible values `all`, `followed`, `follower`, and `none`,
control from whom notifications will generate a Web Push alert
5 years ago
Eugen Rochko
b4fb766b23
Add REST API for Web Push Notifications subscriptions ( #7445 )
...
- POST /api/v1/push/subscription
- PUT /api/v1/push/subscription
- DELETE /api/v1/push/subscription
- New OAuth scope: "push" (required for the above methods)
8 years ago