-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
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
Custom notifications: simplifying sending JSON requests #2560
Comments
Out of the scope of NGSIv2, althouth it is a good idea that could (potentially) be included in a later version of the API (v2.1) in a backward compatible way. |
This should consider the possibility of
|
PR #4157 |
PR #4239 adds more tests and documentation fixes |
Currently is complex to use JSON in custom notifications payload (i.e.
payload
field inhttpCustom
) as this field is string-based, so JSON has to be encoded. E.g. (for a current .test):Thus, we could adopt a "dual-field" approach as the one in Perseo CEP in the HTTP action, which uses
template
for string-based coding andjson
for JSON based encoding.Only one of boths (
payload
or the new fieldjson
) must be used at a time (error returned in other case).The text was updated successfully, but these errors were encountered: