This repository has been archived by the owner on Apr 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostman_collection.json
206 lines (206 loc) · 5.72 KB
/
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{
"info": {
"_postman_id": "c29f233d-07fd-45fc-b878-704f41fb70f2",
"name": "Endecapi",
"description": "Simple and small demo Springboot application providing API for simple ciphers.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Health check",
"event": [
{
"listen": "test",
"script": {
"id": "01e52b22-c96b-4740-bbd8-91ba7249fe1b",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"pm.test(\"Status response is UP\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.status).to.eql(\"UP\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8080/actuator/health",
"host": [
"localhost"
],
"port": "8080",
"path": [
"actuator",
"health"
]
},
"description": "Initial test to test Encdecapi is up and running."
},
"response": []
},
{
"name": "Crypt :: all defaults",
"event": [
{
"listen": "test",
"script": {
"id": "e759f0df-c25e-4c92-a271-68fb4d81c4ee",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"pm.test(\"Default payload is \\\"The quick brown fox...\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.payload).to.eql(\"The quick brown fox jumps over the lazy dog :-)\");",
"});",
"pm.test(\"Default cipher is Caesar cipher\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.cipher).to.eql(\"caesar\");",
"});",
"pm.test(\"Default operation is encrypt\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.decrypt).to.eql(false);",
"});",
"pm.test(\"Default param is 3\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.params).to.eql([\"3\"]);",
"});",
"pm.test(\"Default result is \\\"Wkh ...\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.result).to.eql(\"Wkh txlfn eurzq ira mxpsv ryhu wkh odcb grj :-)\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/crypt",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"crypt"
]
}
},
"response": []
},
{
"name": "Crypt :: all defaults except decrypt and pyload",
"event": [
{
"listen": "test",
"script": {
"id": "c8073b02-11a7-4f53-9d40-a3ddd669c83f",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"pm.test(\"Default payload is \\\"The quick brown fox...\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.payload).to.eql(\"The quick brown fox jumps over the lazy dog :-)\");",
"});",
"pm.test(\"Default cipher is Caesar cipher\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.cipher).to.eql(\"caesar\");",
"});",
"pm.test(\"Default operation is encrypt\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.decrypt).to.eql(false);",
"});",
"pm.test(\"Default param is 3\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.params).to.eql([\"3\"]);",
"});",
"pm.test(\"Default result is \\\"Wkh ...\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.result).to.eql(\"Wkh txlfn eurzq ira mxpsv ryhu wkh odcb grj :-)\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/crypt",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"crypt"
]
}
},
"response": []
},
{
"name": "Crypt :: ROT13",
"event": [
{
"listen": "test",
"script": {
"id": "639f1c7b-104e-4876-8980-09dddf6f5ffe",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"pm.test(\"Your test name\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.payload).to.eql(\"Why did the chicken cross the road? Gb trg gb gur bgure fvqr!\");",
"});",
"pm.test(\"Your test name\", function () {",
" var jsonData = pm.response.json();",
" pm.expect(jsonData.result).to.eql(\"Jul qvq gur puvpxra pebff gur ebnq? To get to the other side!\");",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/crypt?params=13&payload=Why did the chicken cross the road? Gb trg gb gur bgure fvqr!",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"crypt"
],
"query": [
{
"key": "params",
"value": "13"
},
{
"key": "payload",
"value": "Why did the chicken cross the road? Gb trg gb gur bgure fvqr!"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}