-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArticles.postman_collection.json
189 lines (189 loc) · 4.29 KB
/
Articles.postman_collection.json
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"info": {
"_postman_id": "4f832a75-2757-4ff8-a386-a111269af12b",
"name": "Articles",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get all articles",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "user",
"type": "string"
},
{
"key": "password",
"value": "{{springPassword}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/api/article",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"article"
]
}
},
"response": []
},
{
"name": "Get articles paginated",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "{{springPassword}}",
"type": "string"
},
{
"key": "username",
"value": "user",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8080/api/article/page-query?page=0&size=3&sort=id,ASC",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"article",
"page-query"
],
"query": [
{
"key": "page",
"value": "0"
},
{
"key": "size",
"value": "3"
},
{
"key": "sort",
"value": "id,ASC"
}
]
}
},
"response": []
},
{
"name": "Add article",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "user",
"type": "string"
},
{
"key": "password",
"value": "password",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": " {\r\n \"title\": \"1914 translation by H. Rackham\",\r\n \"author\": \"H. Rackham\",\r\n \"content\": \"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.\"\r\n }",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/api/article",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"article"
]
}
},
"response": []
},
{
"name": "Admin endpoint for reporting",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "admin",
"type": "string"
},
{
"key": "password",
"value": "{{springPassword}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "http://localhost:8080/api/article/countLast7Days",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"article",
"countLast7Days"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}