-
Notifications
You must be signed in to change notification settings - Fork 7
/
PostmanExamples.json
115 lines (115 loc) · 2.02 KB
/
PostmanExamples.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
{
"info": {
"_postman_id": "7b662259-e5b3-4243-95b6-9d0094425a5b",
"name": "POA",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Submit",
"event": [
{
"listen": "test",
"script": {
"id": "5ba2db0d-c138-4f61-a726-3fbd77539c81",
"exec": [
"const responseJson = pm.response.json();",
"const txId = responseJson.transactionId",
"",
"pm.collectionVariables.set('transactionId', txId);",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"payload\": \"{{payload}}\",\n \"submit\": \"direct\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/v1/action/",
"host": [
"{{baseUrl}}"
],
"path": [
"v1",
"action",
""
]
}
},
"response": []
},
{
"name": "GetByTXId",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"response": []
},
{
"name": "GetByPayload",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "b24883e3-0685-4708-9c33-58b2515c53ff",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "c00dc31c-1b50-45bd-a6c1-fd77ae88f5f5",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "ae274fad-399e-4775-a800-c942d9efd485",
"key": "baseUrl",
"value": "http://localhost:8080"
},
{
"id": "d1e2825e-ef6c-4e78-ad44-dff7f20f8625",
"key": "transactionId",
"value": "[email protected]"
},
{
"id": "5db76dc5-d758-42a9-b6ec-02f21f268985",
"key": "payload",
"value": "anything goes here"
}
],
"protocolProfileBehavior": {}
}