couchdb
This commit is contained in:
17
couchdb.http
17
couchdb.http
@@ -1,5 +1,20 @@
|
||||
@couchDB = http://{{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}@couchdb.localhost
|
||||
|
||||
###
|
||||
|
||||
POST {{couchDB}}/_cluster_setup
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"action": "enable_single_node",
|
||||
"username": "{{$dotenv COUCHDB_USER}}",
|
||||
"password": "{{$dotenv COUCHDB_PASSWORD}}",
|
||||
"bind_address": "0.0.0.0",
|
||||
"port": 5984
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
GET {{couchDB}}/_all_dbs
|
||||
|
||||
### Creates a new database.
|
||||
@@ -20,7 +35,7 @@ Content-Type: application/json
|
||||
GET {{couchDB}}/db/_all_docs
|
||||
|
||||
###
|
||||
GET {{couchDB}}/db/74913d6d85b8af1d174baf3fe5000507
|
||||
GET {{couchDB}}/db/df9679762e2630b609a69ecf9c000d67
|
||||
|
||||
###
|
||||
POST {{couchDB}}/db/_find
|
||||
|
||||
Reference in New Issue
Block a user