Skip to content

Commit 31c7399

Browse files
committed
Make special characters more readable
1 parent a9d0a0d commit 31c7399

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/tutorials/RESTAPI.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ curl -X 'GET' \
1818
We can query the list of files in the `@public` root via:
1919
```
2020
curl -X 'GET' \
21-
'https://cat2.cloud/demo/api/list/%40public' \
21+
'https://cat2.cloud/demo/api/list/@public' \
2222
-H 'accept: application/json'
2323
```
2424
which gives:
@@ -36,8 +36,7 @@ which gives:
3636
Let's get some metadata for the `"examples/dir1/ds-2d.b2nd"` dataset:
3737
```
3838
curl -X 'GET' \
39-
'https://cat2.cloud/demo/api/info/%40public%2Fexamples%2Fdir1%2Fds-2d.b2nd' \
40-
39+
'https://cat2.cloud/demo/api/info/@public/examples/dir1/ds-2d.b2nd' \
4140
-H 'accept: application/json'
4241
```
4342
```json
@@ -65,7 +64,7 @@ curl -X 'GET' \
6564
Finally we can download the dataset to a local file, `localfile.b2nd`, using:
6665
```
6766
curl -X 'GET' \
68-
'https://cat2.cloud/demo/api/download/%40public%2Fexamples%2Fdir1%2Fds-2d.b2nd' \
67+
'https://cat2.cloud/demo/api/download/@public/examples/dir1/ds-2d.b2nd' \
6968
-H 'accept: application/json' --output "localfile.b2nd"
7069
```
7170
For further details see the [Caterva2 REST API documentation](https://cat2.cloud/demo/docs), which can be used to automatically generate ``curl`` commands of the kind in this tutorial.

0 commit comments

Comments
 (0)