Custom payload in NGSI-LD subscriptions
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.
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.
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?
Yes please Lidia, open an issue on the Orion-LD github and we can discuss this further there
Issue opened: https://github.com/FIWARE/context.Orion-LD/issues/710