Skip to content

Commit 6cfcb6e

Browse files
committed
Update responses.
1 parent 9827db0 commit 6cfcb6e

2 files changed

Lines changed: 15 additions & 25 deletions

File tree

README.ja.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,7 @@ curl -X GET \
344344
"array": ["Arthur", "Dent"],
345345
"boolean": true,
346346
"number": 42,
347-
"structuredValue": { somevalue: 'this' },
348-
"text": "I never could get the hang of Thursdays"
347+
"text": "I never could get the hang of thursdays"
349348
}
350349
```
351350

@@ -651,8 +650,8 @@ curl -iX POST \
651650

652651
リクエストのボディには、"URL
653652
`http://context-provider:3000/random/weatherConditions` は、
654-
`id=urn:ngsi-ld:Store:001` と呼ばれるエンティティ の `relativeHumidity`
655-
`temperature` データ を提供することができます" と記述します。
653+
`id=urn:ngsi-ld:Store:001` と呼ばれるエンティティ の `relativeHumidity`
654+
データ を提供することができます" と記述します。
656655

657656
値は**決して**、 Orion 内に保持されず、登録されたコンテキスト・プロバイダからの
658657
要求に応じて常にリクエストされます。Orion は、どのコンテキスト・プロバイダがコン
@@ -735,14 +734,9 @@ curl -X GET \
735734
"value": "Bösebrücke Einkauf",
736735
"metadata": {}
737736
},
738-
"temperature": {
739-
"type": "Number",
740-
"value": "22.6",
741-
"metadata": {}
742-
},
743737
"relativeHumidity": {
744738
"type": "Number",
745-
"value": "58",
739+
"value": 27,
746740
"metadata": {}
747741
}
748742
}
@@ -807,17 +801,18 @@ curl -X GET \
807801
"dataProvided": {
808802
"entities": [
809803
{
810-
"id": "urn:ngsi-ld:Store:002",
804+
"id": "urn:ngsi-ld:Store:001",
811805
"type": "Store"
812806
}
813807
],
814-
"attrs": ["temperature", "relativeHumidity"]
808+
"attrs": ["relativeHumidity"]
815809
},
816810
"provider": {
817811
"http": {
818812
"url": "http://context-provider:3000/random/weatherConditions"
819813
},
820-
"supportedForwardingMode": "all"
814+
"supportedForwardingMode": "all",
815+
"legacyForwarding": false
821816
},
822817
"status": "active"
823818
}

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ curl -X GET \
302302
"array": ["Arthur", "Dent"],
303303
"boolean": true,
304304
"number": 42,
305-
"structuredValue": { "somevalue": "this" },
306-
"text": "I never could get the hang of Thursdays"
305+
"text": "I never could get the hang of thursdays"
307306
}
308307
```
309308

@@ -578,7 +577,7 @@ apply:
578577
This example registers the Random Data Context Provider with the Orion Context Broker.
579578

580579
The body of the request states that: _"The URL_ `http://context-provider:3000/random/weatherConditions` _is capable of
581-
providing_ `relativeHumidity` and `temperature` _data for the entity called_ `id=urn:ngsi-ld:Store:001`._"_
580+
providing_ `relativeHumidity` _data for the entity called_ `id=urn:ngsi-ld:Store:001`._"_
582581

583582
The values are **never** held within Orion, it is always requested on demand from the registered context provider. Orion
584583
merely holds the registration information about which context providers can offer context data.
@@ -657,14 +656,9 @@ curl -X GET \
657656
"value": "Bösebrücke Einkauf",
658657
"metadata": {}
659658
},
660-
"temperature": {
661-
"type": "Number",
662-
"value": "22.6",
663-
"metadata": {}
664-
},
665659
"relativeHumidity": {
666660
"type": "Number",
667-
"value": "58",
661+
"value": 27,
668662
"metadata": {}
669663
}
670664
}
@@ -722,17 +716,18 @@ curl -X GET \
722716
"dataProvided": {
723717
"entities": [
724718
{
725-
"id": "urn:ngsi-ld:Store:002",
719+
"id": "urn:ngsi-ld:Store:001",
726720
"type": "Store"
727721
}
728722
],
729-
"attrs": ["temperature", "relativeHumidity"]
723+
"attrs": ["relativeHumidity"]
730724
},
731725
"provider": {
732726
"http": {
733727
"url": "http://context-provider:3000/random/weatherConditions"
734728
},
735-
"supportedForwardingMode": "all"
729+
"supportedForwardingMode": "all",
730+
"legacyForwarding": false
736731
},
737732
"status": "active"
738733
}

0 commit comments

Comments
 (0)