Skip to content

Commit

Permalink
Merge pull request #121 from maxl2287/feature/cloud-event-when-delete…
Browse files Browse the repository at this point in the history
…-subscription

 Add termination reason `SUBSCRIPTION_DELETED` when subscription deleted by the user
  • Loading branch information
bigludo7 authored Jul 12, 2024
2 parents 9cdf97b + b9a48b3 commit f7cda98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ info:
It is used in following cases:
- the subscription expire time (optionally set by the requester) has been reached
- the maximum number of subscription events (optionally set by the requester) has been reached
- the subscription was deleted by the requester
- the Access Token `sinkCredential` (optionally set by the requester) expiration time has been reached
- the API server has to stop sending notification prematurely
Expand Down Expand Up @@ -846,12 +847,14 @@ 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
- MAX_EVENTS_REACHED - Maximum number of events (optionally set by the requester) has been reached
- ACCESS_TOKEN_EXPIRED - Access Token sinkCredential (optionally set by the requester) expiration time has been reached
enum:
- MAX_EVENTS_REACHED
- NETWORK_TERMINATED
- SUBSCRIPTION_EXPIRED
- SUBSCRIPTION_DELETED
- ACCESS_TOKEN_EXPIRED

HTTPSubscriptionRequest:
Expand Down
3 changes: 3 additions & 0 deletions code/API_definitions/device-roaming-status-subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ info:
It is used in following cases:
- the subscription expire time (optionally set by the requester) has been reached
- the maximum number of subscription events (optionally set by the requester) has been reached
- the subscription was deleted by the requester
- the Access Token `sinkCredential` (optionally set by the requester) expiration time has been reached
- the API server has to stop sending notification prematurely
Expand Down Expand Up @@ -907,9 +908,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:
CreateSubscriptionBadRequest400:
Expand Down

0 comments on commit f7cda98

Please sign in to comment.