Skip to content

Commit cfe91b6

Browse files
authored
Update index.md
1 parent 07fe7dd commit cfe91b6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/index.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,23 @@ Then run `source .env` to load the environment variables.
5757
#### Get Entities
5858

5959
```bash
60-
curl -sX GET "${BROKER_URL}/v2/entities" -H "Accept: application/json" | jq
60+
curl -sX GET "${BROKER_URL}/v2/entities" \
61+
-H "Accept: application/json" \
62+
-H "Authorization: Bearer ${BROKER_TOKEN}" \
63+
-H "Fiware-Service: ${FIWARE_SERVICE}" \
64+
-H "Fiware-ServicePath: ${FIWARE_SERVICEPATH}" \
65+
| jq
6166
```
6267

6368
#### Get Subscriptions
6469

6570
```bash
66-
curl -sX GET "${BROKER_URL}/v2/subscriptions" -H "Accept: application/json" | jq
71+
curl -sX GET "${BROKER_URL}/v2/subscriptions" \
72+
-H "Accept: application/json" \
73+
-H "Authorization: Bearer ${BROKER_TOKEN}" \
74+
-H "Fiware-Service: ${FIWARE_SERVICE}" \
75+
-H "Fiware-ServicePath: ${FIWARE_SERVICEPATH}" \
76+
| jq
6777
```
6878

6979
### Notes

0 commit comments

Comments
 (0)