Skip to content

Commit b6bce55

Browse files
committed
Update example sensor documentation to use URL-encoded entity URIs
1 parent 5d8814b commit b6bce55

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

doc/examples/camera_sensor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Photo by <a href="https://unsplash.com/@sebastianpoc?utm_content=creditCopyText&
7979

8080
```bash
8181
curl -iX PATCH \
82-
"${BROKER_URL}/v2/entities/urn:ngsi-ld:SpeedCameraSensor:001/attrs" \
82+
"${BROKER_URL}/v2/entities/urn%3Angsi-ld%3ASpeedCameraSensor%3A001/attrs" \
8383
-H "Content-Type: application/json" \
8484
-H "Authorization: Bearer ${BROKER_TOKEN}" \
8585
-H "Fiware-Service: ${FIWARE_SERVICE}" \
@@ -96,7 +96,7 @@ curl -iX PATCH \
9696

9797
```bash
9898
curl -iX DELETE \
99-
"${BROKER_URL}/v2/entities/urn:ngsi-ld:SpeedCameraSensor:001" \
99+
"${BROKER_URL}/v2/entities/urn%3Angsi-ld%3ASpeedCameraSensor%3A001" \
100100
-H "Authorization: Bearer ${BROKER_TOKEN}" \
101101
-H "Fiware-Service: ${FIWARE_SERVICE}" \
102102
-H "Fiware-ServicePath: ${FIWARE_SERVICEPATH}"

doc/examples/location_sensor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ curl -iX POST "${BROKER_URL}/v2/entities" \
6464

6565
```bash
6666
curl -iX PATCH \
67-
"${BROKER_URL}/v2/entities/urn:ngsi-ld:LocationSensor:001/attrs" \
67+
"${BROKER_URL}/v2/entities/urn%3Angsi-ld%3ALocationSensor%3A001/attrs" \
6868
-H "Authorization: Bearer ${BROKER_TOKEN}" \
6969
-H "Fiware-Service: ${FIWARE_SERVICE}" \
7070
-H "Fiware-ServicePath: ${FIWARE_SERVICEPATH}" \
@@ -88,7 +88,7 @@ within the project boundary.
8888

8989
```bash
9090
curl -iX DELETE \
91-
"${BROKER_URL}/v2/entities/urn:ngsi-ld:LocationSensor:001" \
91+
"${BROKER_URL}/v2/entities/urn%3Angsi-ld%3ALocationSensor%3A001" \
9292
-H "Authorization: Bearer ${BROKER_TOKEN}" \
9393
-H "Fiware-Service: ${FIWARE_SERVICE}" \
9494
-H "Fiware-ServicePath: ${FIWARE_SERVICEPATH}"

doc/examples/temperature_sensor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ curl -iX POST "${BROKER_URL}/v2/entities" \
7676

7777
```bash
7878
curl -iX PATCH \
79-
"${BROKER_URL}/v2/entities/urn:ngsi-ld:TemperatureSensor:001/attrs" \
79+
"${BROKER_URL}/v2/entities/urn%3Angsi-ld%3ATemperatureSensor%3A001/attrs" \
8080
-H "Content-Type: application/json" \
8181
-H "Authorization: Bearer ${BROKER_TOKEN}" \
8282
-H "Fiware-Service: ${FIWARE_SERVICE}" \
@@ -93,13 +93,13 @@ curl -iX PATCH \
9393

9494
```bash
9595
curl -iX DELETE \
96-
"${BROKER_URL}/v2/entities/urn:ngsi-ld:TemperatureSensor:001" \
96+
"${BROKER_URL}/v2/entities/urn%3Angsi-ld%3ATemperatureSensor%3A001" \
9797
-H "Authorization: Bearer ${BROKER_TOKEN}" \
9898
-H "Fiware-Service: ${FIWARE_SERVICE}" \
9999
-H "Fiware-ServicePath: ${FIWARE_SERVICEPATH}"
100100

101101
curl -iX DELETE \
102-
"${BROKER_URL}/v2/entities/urn:ngsi-ld:TemperatureSensor:002" \
102+
"${BROKER_URL}/v2/entities/urn%3Angsi-ld%3ATemperatureSensor%3A002" \
103103
-H "Authorization: Bearer ${BROKER_TOKEN}" \
104104
-H "Fiware-Service: ${FIWARE_SERVICE}" \
105105
-H "Fiware-ServicePath: ${FIWARE_SERVICEPATH}"

0 commit comments

Comments
 (0)