Skip to content

Commit b90f7e9

Browse files
committed
Tester postman collection added
1 parent 5866cdf commit b90f7e9

File tree

1 file changed

+105
-0
lines changed

1 file changed

+105
-0
lines changed
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"info": {
3+
"_postman_id": "cddfc51b-17d2-4e4b-b3a4-a6a9037ee3db",
4+
"name": "Simplify.Web.Json.Tester",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "TestIn",
10+
"event": [
11+
{
12+
"listen": "test",
13+
"script": {
14+
"exec": [
15+
"tests[\"HTTP Code Test\"] = responseCode.code === 204;",
16+
""
17+
],
18+
"type": "text/javascript"
19+
}
20+
}
21+
],
22+
"request": {
23+
"auth": {
24+
"type": "noauth"
25+
},
26+
"method": "POST",
27+
"header": [
28+
{
29+
"key": "Content-Type",
30+
"name": "Content-Type",
31+
"value": "application/json",
32+
"type": "text"
33+
}
34+
],
35+
"body": {
36+
"mode": "raw",
37+
"raw": "{\n\t\"Prop1\": \"Hello!\"\n}"
38+
},
39+
"url": {
40+
"raw": "http://localhost:5000/api/v1/testIn",
41+
"protocol": "http",
42+
"host": [
43+
"localhost"
44+
],
45+
"port": "5000",
46+
"path": [
47+
"api",
48+
"v1",
49+
"testIn"
50+
]
51+
}
52+
},
53+
"response": []
54+
},
55+
{
56+
"name": "TestOut",
57+
"event": [
58+
{
59+
"listen": "test",
60+
"script": {
61+
"exec": [
62+
"// Tests",
63+
"tests[\"Get Access Token\"] = responseCode.code === 200;",
64+
"",
65+
"var jsonReply = JSON.parse(responseBody);",
66+
"",
67+
"// Tests",
68+
"",
69+
"tests[\"Prop1 Exist\"] = jsonReply.Prop1 == \"Hello\";"
70+
],
71+
"type": "text/javascript"
72+
}
73+
}
74+
],
75+
"request": {
76+
"auth": {
77+
"type": "noauth"
78+
},
79+
"method": "GET",
80+
"header": [
81+
{
82+
"key": "Content-Type",
83+
"name": "Content-Type",
84+
"type": "text",
85+
"value": "application/json"
86+
}
87+
],
88+
"url": {
89+
"raw": "http://localhost:5000/api/v1/testOut",
90+
"protocol": "http",
91+
"host": [
92+
"localhost"
93+
],
94+
"port": "5000",
95+
"path": [
96+
"api",
97+
"v1",
98+
"testOut"
99+
]
100+
}
101+
},
102+
"response": []
103+
}
104+
]
105+
}

0 commit comments

Comments
 (0)