0

(Moved from https://ask.fiware.org/question/603/how-to-define-custom-api-structure-for-orion-context-broker/)

Can we change definition of API structure to json key/value?

{ "temperature": 55, "pressure": 2.2 }

1 Answer 1

0

In NGSIv2, use the keyValues mode to achieve that result, e.g.

GET /v2/entities?options=keyValues

For more information about this (an others) simplified representation modes have a look to the "Simplified Entity Representation" section at the NGSIv2 specification.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.