mirror of https://gitee.com/bigwinds/arangodb
12 lines
347 B
Plaintext
12 lines
347 B
Plaintext
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/database
|
|
{"name":"mydb","users":[{"username":"admin","passwd":"secret","active":true},{"username":"tester","passwd":"test001","active":false}]}
|
|
|
|
HTTP/1.1 201 Created
|
|
content-type: application/json; charset=utf-8
|
|
|
|
{
|
|
"result" : true,
|
|
"error" : false,
|
|
"code" : 201
|
|
}
|