camaraproject / DeviceStatus

Repository to describe, develop, document and test the Device Status API family
Apache License 2.0
11 stars 33 forks source link

Send a CloudEvent when DELETE `/subscriptions/{subscriptionId}` #117

Closed maxl2287 closed 6 days ago

maxl2287 commented 4 months ago

Problem description Currently there is no description about a CloudEvent when the subscription will be deleted by a User via DELETE /subscriptions/{subscriptionId}.

Possible evolution

see how QoD v0.10.0 is doing it when the user requested a deletion before subscription-expired.

https://github.com/camaraproject/QualityOnDemand/blob/v0.10.0/code/API_definitions/qod-api.yaml#L918

akoshunyadi commented 4 months ago

The same as this in DeviceLocation https://github.com/camaraproject/DeviceLocation/issues/141 , there SUBSCRIPTION_DELETED has been proposed, which I would prefer here too. DELETE_REQUESTED suggests that there will be another event with _DELETED.

bigludo7 commented 4 months ago

Look good for me but I check consistence with Device location (https://github.com/camaraproject/DeviceLocation/issues/141) where same issue but not yet resolved.