File size: 1,375 Bytes
b3385db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@url = {{$dotenv COUCHDB_URL}}
@user = {{$dotenv COUCHDB_USER}}
@password = {{$dotenv COUCHDB_PASSWORD}}
@db = {{$dotenv COUCHDB_DB}}
@origin = 0
@origin = 316723-g1AAAACReJzLYWBgYMpgTmHgzcvPy09JdcjLz8gvLskBCScyJNX___8_K4M5iYEpWyEXKMaekpyabGBuiK4ehwl5LECSoQFI_YcblCUMNsgsMS010dQSXVsWAD8FLCA
@batchSize = 10
@includeDocs = true
@authHeader = Authorization: Basic {{user}}:{{password}}

###
# @name session
POST {{url}}/_session
Content-Type: application/json

{
    "name": "{{user}}",
    "password": "{{password}}"
}

###
# @name docById
@id = b7fdc644-5b24-40ae-b489-37b3fc0c5541
GET {{url}}/{{db}}/{{id}}
{{authHeader}}

###
# @name designDocs
GET {{url}}/{{db}}/_design_docs
{{authHeader}}

###
# @name design
GET {{url}}/{{db}}/_design/wsws/_view/by_path
    ?limit=1
    &key="/en/articles/2024/11/28/slci-n28.html"
    &include_docs=true
{{authHeader}}

###
# @name changes
GET {{url}}/{{db}}/_changes
    ?limit={{batchSize}}
    &include_docs={{includeDocs}}
    &since={{origin}}

###
# @name changes
GET {{url}}/{{db}}/_changes
    ?limit={{batchSize}}
    &include_docs={{includeDocs}}
    &since={{changes.response.body.last_seq}}

###
# @name broken
GET {{url}}/{{db}}/_changes
    ?limit=10
    &include_docs=true
    &since=316731-g1AAAACReJzLYWBgYMpgTmHgzcvPy09JdcjLz8gvLskBCScyJNX___8_K4M5iYEpWyEXKMaekpyabGBuiK4ehwl5LECSoQFI_YcblCUNNsgsMS010dQSXVsWAD_1LCg