пятница, 2 января 2015 г.

Creating New Admin Users into CouchDB

Creating New Admin Users

Let’s do another walk through the API using curl to see how CouchDB behaves when you add admin users.
> HOST="http://127.0.0.1:5984"
> curl -X PUT $HOST/database
{"ok":true}
When starting out fresh, we can add a database. Nothing unexpected. Now let’s create an admin user. We’ll call her anna, and her password is secret. Note the double quotes in the following code; they are needed to denote a string value for the configuration API (as we learned earlier):
curl -X PUT $HOST/_config/admins/anna -d '"secret"'
""

From: http://guide.couchdb.org/draft/security.html

Комментариев нет:

Отправить комментарий