Skip to content

Commit

Permalink
feat: add termination reason when subscription deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
maxl2287 committed Jun 21, 2024
1 parent 9be3cba commit b20db75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ info:
Note: Additionally to these list, ``org.camaraproject.reachability-status-subscriptions.v0.subscription-ends`` notification `type` is sent when the subscription ends.
This notification does not require dedicated subscription.
It is used when the subscription expire time (optionally set by the requester) has been reached or if the API server has to stop sending notification prematurely.
It is used when:
- the subscription expire time (optionally by the requester) has been reached
- the subscription was deleted by the requester
- the API server has to stop sending notification prematurely.
### Notifications callback
Expand Down Expand Up @@ -646,9 +650,11 @@ components:
description: |
NETWORK_TERMINATED - API server stopped sending notification
SUBSCRIPTION_EXPIRED - Subscription expire time (optionally set by the requester) has been reached
SUBSCRIPTION_DELETED - Subscription was deleted by the requester
enum:
- NETWORK_TERMINATED
- SUBSCRIPTION_EXPIRED
- SUBSCRIPTION_DELETED

responses:
Generic400:
Expand Down
2 changes: 2 additions & 0 deletions code/API_definitions/device-roaming-status-subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,11 @@ components:
description: |
NETWORK_TERMINATED - API server stopped sending notification
SUBSCRIPTION_EXPIRED - Subscription expire time (optionally set by the requester) has been reached
SUBSCRIPTION_DELETED - Subscription was deleted by the requester
enum:
- NETWORK_TERMINATED
- SUBSCRIPTION_EXPIRED
- SUBSCRIPTION_DELETED

responses:
Generic400:
Expand Down

0 comments on commit b20db75

Please sign in to comment.