couch
This commit is contained in:
14
couchdb.http
14
couchdb.http
@@ -1,8 +1,9 @@
|
||||
@couchDB = http://{{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}@couchdb.localhost
|
||||
@couchDB = http://couchdb.localhost
|
||||
|
||||
### Init
|
||||
|
||||
POST {{couchDB}}/_cluster_setup
|
||||
Authorization: Basic {{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
@@ -13,20 +14,20 @@ Content-Type: application/json
|
||||
"port": 5984
|
||||
}
|
||||
|
||||
### Creates a new database.
|
||||
GET {{couchDB}}/_users
|
||||
|
||||
###
|
||||
|
||||
GET {{couchDB}}/_all_dbs
|
||||
Authorization: Basic {{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}
|
||||
|
||||
### Creates a new database.
|
||||
PUT {{couchDB}}/db
|
||||
Authorization: Basic {{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}
|
||||
|
||||
### Creates a new document in the specified database, using the supplied JSON document structure.
|
||||
POST {{couchDB}}/db
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Basic {{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}
|
||||
|
||||
{
|
||||
"servings": 4,
|
||||
@@ -36,12 +37,15 @@ Content-Type: application/json
|
||||
|
||||
###
|
||||
GET {{couchDB}}/db/_all_docs
|
||||
Authorization: Basic {{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}
|
||||
|
||||
###
|
||||
GET {{couchDB}}/db/df9679762e2630b609a69ecf9c000d67
|
||||
GET {{couchDB}}/db/2c2135ff744c3b98407572ed4f000cad
|
||||
Authorization: Basic {{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}
|
||||
|
||||
###
|
||||
POST {{couchDB}}/db/_find
|
||||
Authorization: Basic {{$dotenv COUCHDB_USER}}:{{$dotenv COUCHDB_PASSWORD}}
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Content-Length: 168
|
||||
|
||||
Reference in New Issue
Block a user