JaeYoungHwang
JaeYoungHwang

Reputation: 99

Regarding the fiware contextBroker configuration

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

Answers (1)

fgalan
fgalan

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:

  • Those URLs starting with /v1 belong to NGSIv1 version
  • Those URLs starting with /v2 belong to NGSIv2 version

My 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

Related Questions