Custom payload in NGSI-LD subscriptions

asked 2021-01-29 08:34:13 +0200

Lidia gravatar image

I would like to know if NGSI-LD subscriptions (Orion-LD) also have a field inside notification to specify a custom payload, similar to payload field inside notification.httpCustom in NGSIv2 subscriptions:

“notification”: "httpCustom": { "url": "http://foo.com/entity/${id}", "headers": { "Content-Type": "text/plain" }, "method": "PUT", "qs": { "type": "${type}" }, "payload": "The temperature is ${temperature} degrees" }

Thank you in advance.

edit retag flag offensive close merge delete

Comments

Hi there, no, sorry, "custom notifications" isn't part of the NGSI-LD API. If there is interest, I could try to have it included, as the API is still very actively defined in ETSI ISG CIM.

kzangel gravatar imagekzangel ( 2021-02-01 10:56:12 +0200 )edit

Thank you for your reply. Is it possible a NGSIv2 subscription that notifies a custom body in NGSI-LD format? In case it is not posible, should I open an issue at https://github.com/FIWARE/context.Orion-LD/issues to include custom payload inside NGSI-LD subscriptions or what is the way to do it?

Lidia gravatar imageLidia ( 2021-02-03 08:13:01 +0200 )edit

Yes please Lidia, open an issue on the Orion-LD github and we can discuss this further there

kzangel gravatar imagekzangel ( 2021-02-09 08:19:55 +0200 )edit
Lidia gravatar imageLidia ( 2021-02-09 16:29:51 +0200 )edit