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

Commit 3fce8f1

Browse files
haydenyoungphillmac
authored andcommitted
Document /access/write endpoint.
1 parent 5571031 commit 3fce8f1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- [POST|PUT /db/:dbname/put](#post-put-dbdbnameput)
2727
- [POST|PUT /db/:dbname/inc](#post-put-dbdbnameinc)
2828
- [POST|PUT /db/:dbname/inc/:val](#post-put-dbdbnameincval)
29+
- [POST|PUT /db/:dbname/access/write](#post-put-dbdbnameaccesswrite)
2930
- [DELETE /db/:dbname](#delete-dbdbname)
3031
- [DELETE /db/:dbname/:item](#delete-dbdbnameitem)
3132
- [Contribute](#contribute)
@@ -400,6 +401,18 @@ curl -X POST http://localhost:3000/db/counter/inc/100
400401
zdpuAmHw9Tcc4pyVjcVX3rJNJ7SGffmu4EwjodzmaPBVGGzbd
401402
```
402403

404+
### POST|PUT /db/:dbname/access/write
405+
406+
Adds the id to the list of peers who have write access to the :dbname data store.
407+
408+
```shell
409+
curl -X POST http://localhost:3000/db/docstore/access/write -d 'id=045757bffcc7a4...'
410+
```
411+
412+
```json
413+
zdpuAmHw9Tcc4pyVjcVX3rJNJ7SGffmu4EwjodzmaPBVGGzbd
414+
```
415+
403416
### DELETE /db/:dbname
404417

405418
Deletes the local database :dbname. This does not delete any data from peers.

0 commit comments

Comments
 (0)