Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 5fb1a81

Browse files
author
haydenyoung
committed
Document jSON-encoded param example.
1 parent abffeae commit 5fb1a81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ POST param (this would apply to type docstore only):
211211
curl http://localhost:3000/db/docstore -d "create=true" -d "type=docstore" -d "indexBy=name"
212212
```
213213

214+
Parameters can also be passed as JSON. This is useful if additional parameters
215+
such as accessController need to be specified:
216+
217+
```shell
218+
curl -H "Content-Type: application/json" --data '{"create":"true","type":"feed","accessController":{"type": "orbitdb","write": ["1234"]}}'
219+
```
220+
214221
To open an existing database, specify the address of the database. If the
215222
database does not exist locally it will be fetched from the swarm.
216223

0 commit comments

Comments
 (0)