We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl -X POST {{ngsiproxyurl}}/eventsource
{ "connection_id":"353529a0-281a-11ec-b25b-6d62e91d5158", "url":"{{ngsiproxyurl}}/eventsource/353529a0-281a-11ec-b25b-6d62e91d5158" }
Use the previously generated connection_id to create the callback:
curl -X POST '{{ngsiproxyurl}}/callbacks' \ --data-raw '{ "connection_id": "353529a0-281a-11ec-b25b-6d62e91d5158" }'
{ "callback_id":"40b18800-281a-11ec-b25b-6d62e91d5158", "url":"{{ngsiproxyurl}}/callbacks/40b18800-281a-11ec-b25b-6d62e91d5158" }
The callback to be notified by the context-broker through a subscription. Use the previously generated callback_id to create the callback:
curl -X POST '{{ngsiproxyurl}}/callbacks/40b18800-281a-11ec-b25b-6d62e91d5158' \ --data-raw '{ "keyofpayloadcontent": "valueofpayloadcontent" }'
Use the url returned in "Create eventsource"
const sse = new EventSource('{{ngsiproxyurl}}/eventsource/353529a0-281a-11ec-b25b-6d62e91d5158'); sse.addEventListener("notification", function(e) { console.log(JSON.parse(e.data)); })
This EventSource will fire everytime the callback is consumed.
The text was updated successfully, but these errors were encountered:
Thank you @ammopt for your collaboration!
Do you mind to create a PR to create this as a markdown file?
Sorry, something went wrong.
No branches or pull requests
NGSI-Proxy Usage Documentation
Create eventsource:
Sample create eventsource response:
Create callback:
Use the previously generated connection_id to create the
callback:
Sample create callback response:
Consume callback:
The callback to be notified by the context-broker through a
subscription. Use the previously generated callback_id to create
the callback:
Sample EventSource:
Use the url returned in "Create eventsource"
This EventSource will fire everytime the callback is consumed.
The text was updated successfully, but these errors were encountered: