Skip to content

Commit 8d84356

Browse files
Fixing adminspace commands
Fixing adminspace commands
2 parents 6b2aed6 + d042bb3 commit 8d84356

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

content/docs/APIs/REST.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Examples using curl:
100100
curl -X PUT -H "content-type:application/json" -d '{"value": "Hello World!"}' http://localhost:8000/demo/example/test
101101

102102
# Create a Memory storage on demo/test/** via a Put on admin space (@/...)
103-
curl -X PUT -H 'content-type:application/json' http://localhost:8000/@/router/local/config/plugins/storage_manager/storages/demo -d '{key_expr:"demo/test/**", volume:"memory"}'
103+
curl -X PUT -H 'content-type:application/json' http://localhost:8000/@/local/router/config/plugins/storage_manager/storages/demo -d '{key_expr:"demo/test/**", volume:"memory"}'
104104
```
105105
106106
### DELETE
@@ -118,6 +118,6 @@ Examples using curl:
118118
curl -X DELETE http://localhost:8000/demo/example/test
119119

120120
# Remove a storage via a Remove on admin space (@/...)
121-
curl -X DELETE http://localhost:8000/@/router/local/config/plugins/storage_manager/storages/demo
121+
curl -X DELETE http://localhost:8000/@/local/router/config/plugins/storage_manager/storages/demo
122122
```
123123

content/docs/getting-started/quick-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ The complete Eclipse zenoh's key/value space is accessible through the REST API,
6767

6868
* Get info of the local Zenoh router:
6969
```bash
70-
curl http://localhost:8000/@/router/local
70+
curl http://localhost:8000/@/local/router
7171
```
7272
* Add a memory storage on `demo/example/**`:
7373
```bash
74-
curl -X PUT -H 'content-type:application/json' -d '{key_expr:"demo/example/**", volume: "memory"}' http://localhost:8000/@/router/local/config/plugins/storage_manager/storages/demo
74+
curl -X PUT -H 'content-type:application/json' -d '{key_expr:"demo/example/**", volume: "memory"}' http://localhost:8000/@/local/router/config/plugins/storage_manager/storages/demo
7575
```
7676
* Get the storages of the local router (should return the "demo" storage that has just been created):
7777
```bash
78-
curl 'http://localhost:8000/@/router/local/status/plugins/storage_manager/storages/*'
78+
curl 'http://localhost:8000/@/local/router/status/plugins/storage_manager/storages/*'
7979
```
8080

8181
### Put/Get into Zenoh

content/docs/manual/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Remember to enable the REST plugin in `zenohd` with the command line option `--r
7676

7777
To do this, use commands such as
7878
```bash
79-
curl -X PUT http://localhost:8000/@/router/local/config/plugins/storage_manager/storages/my-storage -d '{key_expr:"demo/mystore/**", volume:{id:"memory"}}'
79+
curl -X PUT http://localhost:8000/@/local/router/config/plugins/storage_manager/storages/my-storage -d '{key_expr:"demo/mystore/**", volume:{id:"memory"}}'
8080
# ^- REST plugin addr ^ ^--- config space --^ ^---- the path to the configured value ---^ ^-------------- the value to insert ----------------^
8181
```
8282

content/docs/manual/plugin-storage-manager.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,20 @@ fetch('http://hostname:8000/key/expression', {
107107
To create a volume, add an entry describing it to the configuration. Let's say you'd like to create "my-volume" on a node that had the influxdb daemon listen on port 8086:
108108

109109
```bash
110-
curl -X PUT 'http://hostname:8000/@/router/local/config/plugins/storage_manager/volumes/my-volume' -H 'content-type:application/json' -d '{"backend": "influxdb", "url": "http://localhost:8086"}'
110+
curl -X PUT 'http://hostname:8000/@/local/router/config/plugins/storage_manager/volumes/my-volume' -H 'content-type:application/json' -d '{"backend": "influxdb", "url": "http://localhost:8086"}'
111111
```
112112

113113
Note that if you only planned on having a single volume relying on influxdb, you might as well name that volume "influxdb", saving you the need to specify that the "influxdb" backend is the one you want to use:
114114

115115
```bash
116-
curl -X PUT 'http://hostname:8000/@/router/local/config/plugins/storage_manager/volumes/influxdb' -H 'content-type:application/json' -d '{"url": "http://localhost:8086"}'
116+
curl -X PUT 'http://hostname:8000/@/local/router/config/plugins/storage_manager/volumes/influxdb' -H 'content-type:application/json' -d '{"url": "http://localhost:8086"}'
117117
```
118118

119119
### Removing a volume
120120
To remove a volume, simply delete its entry from the configuration with:
121121

122122
```bash
123-
curl -X DELETE 'http://hostname:8000/@/router/local/config/plugins/storage_manager/volumes/my-volume'
123+
curl -X DELETE 'http://hostname:8000/@/local/router/config/plugins/storage_manager/volumes/my-volume'
124124
```
125125

126126
The storage manager will delete the associated storages as well.
@@ -131,19 +131,19 @@ You can add storages at any time by adding them to the configuration through the
131131

132132
The simplest volume to use is the integrated "memory" volume, since it requires no extra configuration. Let's have "my-storage" work on `demo/my-storage/**`:
133133
```bash
134-
curl -X PUT 'http://hostname:8000/@/router/local/config/plugins/storage_manager/storages/my-storage' -H 'content-type:application/json' -d '{"key_expr": "demo/my-storage/**", "volume": "memory"}'
134+
curl -X PUT 'http://hostname:8000/@/local/router/config/plugins/storage_manager/storages/my-storage' -H 'content-type:application/json' -d '{"key_expr": "demo/my-storage/**", "volume": "memory"}'
135135
```
136136

137137
Some volumes, like that "my-volume" one we created [earlier](#adding-a-volume), need a bit more configuration. Any volume supported by the `influxdb` backend, for example, needs to know on what database to store the data associated with each storage through a `db` argument:
138138
```bash
139-
curl -X PUT 'http://hostname:8000/@/router/local/config/plugins/storage_manager/storages/my-other-storage' -H 'content-type:application/json' -d '{"key_expr": "demo/my-other-storage/**", "volume": {"id": "my-volume", "db": "MyOtherStorage"}}'
139+
curl -X PUT 'http://hostname:8000/@/local/router/config/plugins/storage_manager/storages/my-other-storage' -H 'content-type:application/json' -d '{"key_expr": "demo/my-other-storage/**", "volume": {"id": "my-volume", "db": "MyOtherStorage"}}'
140140
```
141141

142142
### Removing a storage
143143
Just like volumes, removing a storage is as simple as deleting its entry in the configuration. Note that removing a volume's last storage will not remove that volume: volumes with 0 storages depending on them are perfectly legal.
144144

145145
```bash
146-
curl -X DELETE 'http://hostname:8000/@/router/local/config/plugins/storage_manager/storages/my-storage'
146+
curl -X DELETE 'http://hostname:8000/@/local/router/config/plugins/storage_manager/storages/my-storage'
147147
```
148148

149149
### Checking a volume's or a storage's status

0 commit comments

Comments
 (0)