-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOCAPI-Proxy.postman_collection.json
103 lines (103 loc) · 2.47 KB
/
OCAPI-Proxy.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
{
"info": {
"_postman_id": "b4cc8832-9d39-46b5-af22-cf61db921f03",
"name": "OCAPI-Proxy",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Customer Auth ",
"event": [
{
"listen": "test",
"script": {
"id": "48c03b10-7936-49d1-9251-fef4cd896343",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"postman.setEnvironmentVariable(\"Bearer\", postman.getResponseHeader('Authorization'));",
"postman.setEnvironmentVariable(\"customer_id\",jsonData.customer_id);",
"postman.setEnvironmentVariable(\"customer_no\",jsonData.customer_no);",
"postman.setEnvironmentVariable(\"email\",jsonData.email);",
"tests['Authorization: '+postman.getResponseHeader('Authorization')] = postman.getResponseHeader('Authorization');",
""
],
"type": "text/javascript"
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "XXXXXX",
"type": "string"
},
{
"key": "username",
"value": "[email protected]",
"type": "string"
},
{
"key": "saveHelperData",
"value": true,
"type": "boolean"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
"key": "Authorization",
"value": "Basic MzYyZjAxMDItNjU0Yy00ODFiLTk1MjktNzMyOGQ0YTU3MDhlOk16WXlaakF4TURJdE5qVTBZeTAwT0RGaUxUazFNamt0TnpNeU9HUTBZVFUzTURobE9nPT0=",
"disabled": true
},
{
"key": "x-dw-client-id",
"value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
{
"key": "Origin",
"value": "https://{{url}}",
"disabled": true
},
{
"key": "x-dw-client-id",
"type": "text",
"value": "5003458a-2365-4abe-8ade-25f46b582cf6",
"disabled": true
},
{
"key": "callurl",
"value": "customers/auth",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{ \"type\" : \"guest\"}"
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
}
]
}