curl -X PUT http://admin:*****@couchdb.example.net/_users/org.couchdb.user:username \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"_id": "org.couchdb.user:username", "name": "username", "password": "********", "roles": [], "type": "user"}'
curl -X GET http://USER:PASSWORD@127.0.0.1:5984/_all_dbs
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.