Reputation: 99
In my understanding, ContextBroker provides two API models such as NGSI V1 / V2.
Regarding this options, How can I config the ContextBroker configuration?
For example:
Content-Type : application/json
Accep : application/json
http://example_location:1026/v1/queryContext
Upvotes: 1
Views: 77
Reputation: 12294
You don't need to select API version by configuration. CB supports both simultaneously so it is just a matter of "selecting" it by using the proper URL in RESTful operations:
/v1
belong to NGSIv1 version/v2
belong to NGSIv2 versionMy recommendation is use always version 2. Eventually v1 could be deprecated and removed from Orion in the future.
Maybe you find useful the following document which compares NGSIv1 vs NGSIv2 and shows how the latter is much more flexible, advanced and powerful.
Upvotes: 2