Clarification on Subscription Process Responses #168
Replies: 3 comments 3 replies
-
Responding to your scenarios: Scenario 1: As of now you cannot create one subscription for multiple devices. You can create a subscription including multiple subscription- When the client requests then GET /subscriptions/{subscriptionId}, then you will get the subscription model, including the current status. status:
type: string
description: |-
Current status of the subscription - Management of Subscription State engine is not mandatory for now. Note not all statuses may be considered to be implemented. Details:
- `ACTIVATION_REQUESTED`: Subscription creation (POST) is triggered but subscription creation process is not finished yet.
- `ACTIVE`: Subscription creation process is completed. Subscription is fully operative.
- `INACTIVE`: Subscription is temporarily inactive, but its workflow logic is not deleted.
- `EXPIRED`: Subscription is ended (no longer active). This status applies when subscription is ended due to `SUBSCRIPTION_EXPIRED` or `ACCESS_TOKEN_EXPIRED` event.
- `DELETED`: Subscription is ended as deleted (no longer active). This status applies when subscription information is kept (i.e. subscription workflow is no longer active but its meta-information is kept).
enum:
- ACTIVATION_REQUESTED
- ACTIVE
- EXPIRED
- INACTIVE
- DELETED In your case the status will be "ACTIVATION_REQUESTED", when not all subscriptions are partial active. Scenario 2: This depends on the provider implementation. It's up to the provider to decide, if it deletes directly the subscription after it was deleted by the user or expired. But in such cases a final a. Response with 404 that the resource is not anymore found |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Created a discussion on commonalities camaraproject/Commonalities#244 |
Beta Was this translation helpful? Give feedback.
-
HI Team ,
I would like to confirm the following:
Scenario 1: When a client creates a subscription for devices, the process is asynchronous. If the client requests the subscription status for all devices and some subscriptions have been completed while others are still in progress, what response will the client receive? Will the response include information only about the completed subscriptions, or will it also indicate that the remaining subscriptions are still being processed (i.e., a partial response showing that processing is ongoing)?
Scenario 2: When a client attempts to retrieve the subscription of specific devices using a “subscription ID” and the subscription has already been deleted or expired, what response can the client expect?
Beta Was this translation helpful? Give feedback.
All reactions