如何为 orion context broker 定义自定义 API 结构?

How to define custom API structure for orion context broker?

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

我们可以将 API 结构的定义更改为 json key/value 吗?

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

在 NGSIv2 中,使用 keyValues 模式来实现该结果,例如

GET /v2/entities?options=keyValues

有关此(其他)简化表示模式的更多信息,请查看 NGSIv2 specification 的 "Simplified Entity Representation" 部分。