Skip to content

Commit

Permalink
feat: add subscription to when a user is deleted (#20)
Browse files Browse the repository at this point in the history
* feat: add subscription to when a user is deleted

* changed entity type

* added attributes to notifications params
  • Loading branch information
ranim-n authored Aug 1, 2024
1 parent e28d30b commit 3ec0fe0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ngsild-payloads/userDeletionSubscription.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "urn:ngsi-ld:Subscription:1f95dc0e-4b15-4a2f-83fc-243eb9234adc",
"type": "Subscription",
"entities": [
{
"type": "UserProfile"
}
],
"notificationTrigger": [
"entityDeleted"
],
"notification": {
"format": "keyValues",
"endpoint": {
"uri": "http://localhost:8080/userDeletionListener",
"accept": "application/json"
},
"attributes": [
"hasConsent",
"hasFluidMonitoring"
]
}
}

0 comments on commit 3ec0fe0

Please sign in to comment.