-
Notifications
You must be signed in to change notification settings - Fork 3
/
collection.json
65 lines (65 loc) · 1.32 KB
/
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
{
"info": {
"_postman_id": "722f7cf6-78f5-4a7a-a527-e436e84dfb73",
"name": "newman-debug",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "GET /get",
"event": [
{
"listen": "test",
"script": {
"id": "a534d498-afc2-458c-81fd-2cb69fb02fc7",
"exec": [
"pm.test('response status is 200 OK', () => {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test('query params are returned in the response body', () => {",
" const subject = {",
" foo: 'hello',",
" bar: 'world'",
" };",
"",
" debugger;",
" const response = pm.response.json();",
"",
" pm.expect(response.args).to.eql(subject);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://postman-echo.com/get?foo=hello&bar=world",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"get"
],
"query": [
{
"key": "foo",
"value": "hello"
},
{
"key": "bar",
"value": "world"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}