Skip to content

Commit dd6106f

Browse files
authored
Merge pull request #63 from oracle/feature/postman-collections-update
Feature/postman collections update
2 parents d591fb7 + 39af6cd commit dd6106f

5 files changed

+26690
-8091
lines changed

postman-collections/ORACLE Hospitality Distribution Rest APIs By Module.postman_collection.json

Lines changed: 3565 additions & 1245 deletions
Large diffs are not rendered by default.
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
{
2+
"info": {
3+
"_postman_id": "5d8f4647-86af-4b40-859d-126dc7ebbf25",
4+
"name": "4. Nor1 Upgrade REST APIs",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6+
"_exporter_id": "15729853",
7+
"_collection_link": "https://www.postman.com/hospitalityapis/workspace/oracle-hospitality-apis/collection/15729853-5d8f4647-86af-4b40-859d-126dc7ebbf25?action=share&source=collection_link&creator=15729853"
8+
},
9+
"item": [
10+
{
11+
"name": "OAuth Token",
12+
"item": [
13+
{
14+
"name": "Get OAuth Token",
15+
"event": [
16+
{
17+
"listen": "test",
18+
"script": {
19+
"exec": [
20+
"var jsonData = JSON.parse(responseBody);\r",
21+
"postman.setEnvironmentVariable(\"Token\", jsonData.access_token);"
22+
],
23+
"type": "text/javascript"
24+
}
25+
}
26+
],
27+
"request": {
28+
"auth": {
29+
"type": "basic",
30+
"basic": [
31+
{
32+
"key": "password",
33+
"value": "{{CLIENT_SECRET}}",
34+
"type": "string"
35+
},
36+
{
37+
"key": "username",
38+
"value": "{{CLIENT_ID}}",
39+
"type": "string"
40+
},
41+
{
42+
"key": "saveHelperData",
43+
"value": true,
44+
"type": "boolean"
45+
},
46+
{
47+
"key": "showPassword",
48+
"value": false,
49+
"type": "boolean"
50+
}
51+
]
52+
},
53+
"method": "POST",
54+
"header": [
55+
{
56+
"key": "Content-Type",
57+
"name": "Content-Type",
58+
"type": "text",
59+
"value": "application/x-www-form-urlencoded"
60+
},
61+
{
62+
"key": "x-app-key",
63+
"type": "text",
64+
"value": "{{AppKey}}"
65+
}
66+
],
67+
"body": {
68+
"mode": "urlencoded",
69+
"urlencoded": [
70+
{
71+
"key": "username",
72+
"value": "{{Username}}",
73+
"type": "text"
74+
},
75+
{
76+
"key": "password",
77+
"value": "{{Password}}",
78+
"type": "text"
79+
},
80+
{
81+
"key": "grant_type",
82+
"value": "password",
83+
"type": "text"
84+
}
85+
]
86+
},
87+
"url": {
88+
"raw": "{{HostName}}/oauth/v1/tokens",
89+
"host": [
90+
"{{HostName}}"
91+
],
92+
"path": [
93+
"oauth",
94+
"v1",
95+
"tokens"
96+
]
97+
}
98+
},
99+
"response": []
100+
}
101+
]
102+
},
103+
{
104+
"name": "Nor1 Upgrade API",
105+
"item": [
106+
{
107+
"name": "Upsell Offers API",
108+
"item": [
109+
{
110+
"name": "get Upsell Offers",
111+
"event": [
112+
{
113+
"listen": "test",
114+
"script": {
115+
"exec": [
116+
"var jsonData = JSON.parse(responseBody);\r",
117+
"postman.setEnvironmentVariable(\"SelectedOfferId\", jsonData.items[0].upsellOffers[0].offers[0].offerId);"
118+
],
119+
"type": "text/javascript"
120+
}
121+
}
122+
],
123+
"protocolProfileBehavior": {
124+
"disableBodyPruning": true
125+
},
126+
"request": {
127+
"auth": {
128+
"type": "bearer",
129+
"bearer": [
130+
{
131+
"key": "token",
132+
"value": "{{Token}}",
133+
"type": "string"
134+
}
135+
]
136+
},
137+
"method": "GET",
138+
"header": [
139+
{
140+
"key": "x-app-key",
141+
"value": "{{AppKey}}",
142+
"type": "text"
143+
},
144+
{
145+
"key": "providerId",
146+
"value": "{{ProviderId}}",
147+
"type": "text"
148+
}
149+
],
150+
"body": {
151+
"mode": "raw",
152+
"raw": "",
153+
"options": {
154+
"raw": {
155+
"language": "json"
156+
}
157+
}
158+
},
159+
"url": {
160+
"raw": "{{HostName}}/ohcgep/v0/hotels/{{HotelId}}/reservations/{{ReservationId}}/arrivalDate/{{ArrivalDate}}/upsellOffers",
161+
"host": [
162+
"{{HostName}}"
163+
],
164+
"path": [
165+
"ohcgep",
166+
"v0",
167+
"hotels",
168+
"{{HotelId}}",
169+
"reservations",
170+
"{{ReservationId}}",
171+
"arrivalDate",
172+
"{{ArrivalDate}}",
173+
"upsellOffers"
174+
]
175+
}
176+
},
177+
"response": []
178+
},
179+
{
180+
"name": "Post Upsell Offer",
181+
"request": {
182+
"auth": {
183+
"type": "bearer",
184+
"bearer": [
185+
{
186+
"key": "token",
187+
"value": "{{Token}}",
188+
"type": "string"
189+
}
190+
]
191+
},
192+
"method": "POST",
193+
"header": [
194+
{
195+
"key": "x-app-key",
196+
"value": "{{AppKey}}",
197+
"type": "text"
198+
},
199+
{
200+
"key": "providerId",
201+
"value": "{{ProviderId}}",
202+
"type": "text"
203+
}
204+
],
205+
"body": {
206+
"mode": "raw",
207+
"raw": "{\r\n \"offerId\": \"{{SelectedOfferId}}\"\r\n}",
208+
"options": {
209+
"raw": {
210+
"language": "json"
211+
}
212+
}
213+
},
214+
"url": {
215+
"raw": "{{HostName}}/ohcgep/v0/hotels/{{HotelId}}/reservations/{{ReservationId}}/arrivalDate/{{ArrivalDate}}/upsellOffers",
216+
"host": [
217+
"{{HostName}}"
218+
],
219+
"path": [
220+
"ohcgep",
221+
"v0",
222+
"hotels",
223+
"{{HotelId}}",
224+
"reservations",
225+
"{{ReservationId}}",
226+
"arrivalDate",
227+
"{{ArrivalDate}}",
228+
"upsellOffers"
229+
]
230+
}
231+
},
232+
"response": []
233+
}
234+
]
235+
}
236+
]
237+
}
238+
]
239+
}

0 commit comments

Comments
 (0)