This commit is contained in:
2025-10-15 23:33:08 +02:00
parent 7f58f12b8d
commit c1e14fa2d6
3 changed files with 14 additions and 11 deletions

View File

@@ -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