1
- @apiUrl = http://localhost:80
1
+ @apiUrl = http://127.0.0.1:9000
2
2
@apiVersion = v0
3
- @token = alwatr_110_313
3
+ @token = YOUR_SECRET_TOKEN
4
4
5
5
### Get a public storage over nginx serve
6
6
# GET {{apiUrl}}/{{apiVersion}}/public/comments/page1.json
7
7
8
8
### Get a document by storageName and docId
9
9
GET {{apiUrl }}/{{apiVersion}}/?storage=comments/page1&id=c1
10
- authorization : Bearer {{token}}
10
+ Authorization : Bearer {{token}}
11
11
12
12
### Insert document
13
13
PATCH {{apiUrl }}/{{apiVersion}}/?storage=comments/page1
14
- authorization : Bearer {{token}}
14
+ Authorization : Bearer {{token}}
15
15
Content-Type: application/json
16
16
17
17
{
@@ -23,7 +23,7 @@ Content-Type: application/json
23
23
24
24
###
25
25
PATCH {{apiUrl }}/{{apiVersion}}/?storage=comments/page1
26
- authorization : Bearer {{token}}
26
+ Authorization : Bearer {{token}}
27
27
Content-Type: application/json
28
28
29
29
{
@@ -35,7 +35,7 @@ Content-Type: application/json
35
35
36
36
### Edit document
37
37
PATCH {{apiUrl }}/{{apiVersion}}/?storage=comments/page1
38
- authorization : Bearer {{token}}
38
+ Authorization : Bearer {{token}}
39
39
Content-Type: application/json
40
40
41
41
{
@@ -47,19 +47,19 @@ Content-Type: application/json
47
47
48
48
### Check document exists by storageName and docId
49
49
GET {{apiUrl }}/{{apiVersion}}/has?storage=comments/page1&id=c1
50
- authorization : Bearer {{token}}
50
+ Authorization : Bearer {{token}}
51
51
52
52
### Delete document
53
53
DELETE {{apiUrl }}/{{apiVersion}}/?storage=comments/page1&id=c1
54
- authorization : Bearer {{token}}
54
+ Authorization : Bearer {{token}}
55
55
56
56
### Get keys
57
57
GET {{apiUrl }}/{{apiVersion}}/keys?storage=comments/page1
58
- authorization : Bearer {{token}}
58
+ Authorization : Bearer {{token}}
59
59
60
60
### Get all data
61
61
GET {{apiUrl }}/{{apiVersion}}/all?storage=comments/page1
62
- authorization : Bearer {{token}}
62
+ Authorization : Bearer {{token}}
63
63
64
64
### === Test other routes and errors ===
65
65
@@ -77,21 +77,21 @@ TRACE {{apiUrl}}/{{apiVersion}}
77
77
78
78
### Document not exists
79
79
GET {{apiUrl }}/{{apiVersion}}/has?storage=comments/page1&id=foo
80
- authorization : Bearer {{token}}
80
+ Authorization : Bearer {{token}}
81
81
82
82
83
83
### Get a document by storageName without id
84
84
GET {{apiUrl }}/{{apiVersion}}/?storage=comments/page1
85
- authorization : Bearer {{token}}
85
+ Authorization : Bearer {{token}}
86
86
87
87
### empty body
88
88
PATCH {{apiUrl }}/{{apiVersion}}/?storage=comments/page1
89
- authorization : Bearer {{token}}
89
+ Authorization : Bearer {{token}}
90
90
Content-Type: application/json
91
91
92
92
### invalid json
93
93
PATCH {{apiUrl }}/{{apiVersion}}/?storage=comments/page1
94
- authorization : Bearer {{token}}
94
+ Authorization : Bearer {{token}}
95
95
Content-Type: application/json
96
96
97
97
{
0 commit comments