Skip to content

Commit cd53d28

Browse files
authored
Merge pull request #82 from oracle/feature/organize-postman-collections
Feature/organize postman collections
2 parents 69b321a + 92342db commit cd53d28

8 files changed

+576
-231
lines changed

postman-collections/WORKFLOWS.md renamed to postman-collections/property/WORKFLOWS.md

Lines changed: 231 additions & 231 deletions
Large diffs are not rendered by default.
Lines changed: 282 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,282 @@
1+
{
2+
"info": {
3+
"_postman_id": "8e6dd16b-30ad-4d12-9e68-eb35992e7e45",
4+
"name": "R&A_ObjectStorage_ParURL",
5+
"description": "###### **R&A PAR URL Generation**\n\nFrom the OAS version of Analytics, the end user have the option to Schedule the BI Publisher jobs to Object Storage. To access the files from the Object Storage the users are required to generate the Par URL. The pre-requisite to generate the Par URL is to provide the Environment Variables. On the Left Menu you see the Environments Tab, select {OSVariables} and fill in the variable value as per the table.\n\n| Variable | Value |\n| --- | --- |\n| IDCSHostName | This value is IDCS host: from R&A Login screen. <br>copy URL up to “/UI” {e.g. [https://idcs-517a23fb2d3bxxxx7140c4c7892862c.identity.oraclecloud.com}](https://idcs-517a23fb2d3bxxxx7140c4c7892862c.identity.oraclecloud.com}) |\n| APPId | This value is accessed from the R&A Portal. The **APP ID** <br>Controls > File Delivery > Object Storage |\n| APPSecret | This value is accessed from the R&A Portal. By default it is Hidden, click Show and make a Highlight and copy **APP Secret** <br>Controls > File Delivery > Object Storage |\n| TenantID | Get the TenantID from the About Screen on the R&A Application Portal. |\n| Token | This is blank and is auto populated Not required to provide any value. |\n| PortalEndPoint | This value differs for UAT and PROD. <br>**UAT:** [https://uat.ohra.oraclehospitality.ocs.oraclecloud.com](https://uat.ohra.oraclehospitality.ocs.oraclecloud.com) <br>**Prod:** [https://portal.ohra.oraclehospitality.ocs.oraclecloud.com](https://portal.ohra.oraclehospitality.ocs.oraclecloud.com) |\n| Prefix | This is the folder value provided, when scheduling the BI Publisher report. <br>**Note:** No Special Characters, spaces are allowed. Value is case-sensitive. |\n| FileName | The Name of the file given when scheduling the Report. Value is case-sensitive. |\n| MinutesToExpire | The value is given here for the count of minutes until when the PAR URL is valid. Post the time given, the par url need to be regenerated. |",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
7+
"_exporter_id": "36004770"
8+
},
9+
"item": [
10+
{
11+
"name": "GetToken",
12+
"event": [
13+
{
14+
"listen": "test",
15+
"script": {
16+
"exec": [
17+
"var jsonData = JSON.parse(responseBody);\r",
18+
"postman.setEnvironmentVariable(\"Token\", jsonData.access_token);"
19+
],
20+
"type": "text/javascript",
21+
"packages": {}
22+
}
23+
},
24+
{
25+
"listen": "prerequest",
26+
"script": {
27+
"exec": [
28+
""
29+
],
30+
"type": "text/javascript",
31+
"packages": {}
32+
}
33+
}
34+
],
35+
"request": {
36+
"auth": {
37+
"type": "basic",
38+
"basic": [
39+
{
40+
"key": "password",
41+
"value": "{{APPSecret}}",
42+
"type": "string"
43+
},
44+
{
45+
"key": "username",
46+
"value": "{{APPId}}",
47+
"type": "string"
48+
}
49+
]
50+
},
51+
"method": "POST",
52+
"header": [],
53+
"body": {
54+
"mode": "urlencoded",
55+
"urlencoded": [
56+
{
57+
"key": "grant_type",
58+
"value": "client_credentials",
59+
"type": "text"
60+
},
61+
{
62+
"key": "scope",
63+
"value": "urn:opc:hgbu:ws:rna:E:{{TenantID}}:all",
64+
"type": "text"
65+
}
66+
]
67+
},
68+
"url": {
69+
"raw": "{{IDCSHostName}}:443/oauth2/v1/token",
70+
"host": [
71+
"{{IDCSHostName}}"
72+
],
73+
"port": "443",
74+
"path": [
75+
"oauth2",
76+
"v1",
77+
"token"
78+
]
79+
}
80+
},
81+
"response": []
82+
},
83+
{
84+
"name": "Generate PAR URL",
85+
"request": {
86+
"auth": {
87+
"type": "bearer",
88+
"bearer": [
89+
{
90+
"key": "token",
91+
"value": "{{Token}}",
92+
"type": "string"
93+
}
94+
]
95+
},
96+
"method": "POST",
97+
"header": [
98+
{
99+
"key": "Content-Type",
100+
"value": "application/json",
101+
"type": "text"
102+
}
103+
],
104+
"body": {
105+
"mode": "raw",
106+
"raw": "{\n \"requestName\": \"{{$timestamp}}\",\n \"prefix\": \"{{Prefix}}\",\n \"fileName\": \"{{FileName}}\",\n \"minutesToExpire\": \"{{MinutesToExpire}}\"\n}",
107+
"options": {
108+
"raw": {
109+
"language": "json"
110+
}
111+
}
112+
},
113+
"url": {
114+
"raw": "{{PortalEndPoint}}developer/appapi/v1/os/PARUrl",
115+
"host": [
116+
"{{PortalEndPoint}}developer"
117+
],
118+
"path": [
119+
"appapi",
120+
"v1",
121+
"os",
122+
"PARUrl"
123+
]
124+
}
125+
},
126+
"response": []
127+
},
128+
{
129+
"name": "Generate Folder PAR URL",
130+
"request": {
131+
"auth": {
132+
"type": "bearer",
133+
"bearer": [
134+
{
135+
"key": "token",
136+
"value": "{{Token}}",
137+
"type": "string"
138+
}
139+
]
140+
},
141+
"method": "POST",
142+
"header": [
143+
{
144+
"key": "Content-Type",
145+
"value": "application/json",
146+
"type": "text"
147+
}
148+
],
149+
"body": {
150+
"mode": "raw",
151+
"raw": "{\n \"requestName\": \"{{$timestamp}}\",\n \"prefix\": \"{{Prefix}}\",\n \"minutesToExpire\": \"{{MinutesToExpire}}\"\n}",
152+
"options": {
153+
"raw": {
154+
"language": "json"
155+
}
156+
}
157+
},
158+
"url": {
159+
"raw": "{{PortalEndPoint}}developer/appapi/v1/os/PARUrl",
160+
"host": [
161+
"{{PortalEndPoint}}developer"
162+
],
163+
"path": [
164+
"appapi",
165+
"v1",
166+
"os",
167+
"PARUrl"
168+
]
169+
}
170+
},
171+
"response": []
172+
},
173+
{
174+
"name": "All Created PAR URL",
175+
"protocolProfileBehavior": {
176+
"disableBodyPruning": true
177+
},
178+
"request": {
179+
"auth": {
180+
"type": "bearer",
181+
"bearer": [
182+
{
183+
"key": "token",
184+
"value": "{{Token}}",
185+
"type": "string"
186+
}
187+
]
188+
},
189+
"method": "GET",
190+
"header": [
191+
{
192+
"key": "Content-Type",
193+
"value": "application/json",
194+
"type": "text"
195+
}
196+
],
197+
"body": {
198+
"mode": "raw",
199+
"raw": "\n",
200+
"options": {
201+
"raw": {
202+
"language": "json"
203+
}
204+
}
205+
},
206+
"url": {
207+
"raw": "{{PortalEndPoint}}developer/appapi/v1/os/allPARInfo?expired=0",
208+
"host": [
209+
"{{PortalEndPoint}}developer"
210+
],
211+
"path": [
212+
"appapi",
213+
"v1",
214+
"os",
215+
"allPARInfo"
216+
],
217+
"query": [
218+
{
219+
"key": "expired",
220+
"value": "0"
221+
}
222+
]
223+
}
224+
},
225+
"response": []
226+
},
227+
{
228+
"name": "All Expired PAR URL",
229+
"protocolProfileBehavior": {
230+
"disableBodyPruning": true
231+
},
232+
"request": {
233+
"auth": {
234+
"type": "bearer",
235+
"bearer": [
236+
{
237+
"key": "token",
238+
"value": "{{Token}}",
239+
"type": "string"
240+
}
241+
]
242+
},
243+
"method": "GET",
244+
"header": [
245+
{
246+
"key": "Content-Type",
247+
"value": "application/json",
248+
"type": "text"
249+
}
250+
],
251+
"body": {
252+
"mode": "raw",
253+
"raw": "\n",
254+
"options": {
255+
"raw": {
256+
"language": "json"
257+
}
258+
}
259+
},
260+
"url": {
261+
"raw": "{{PortalEndPoint}}developer/appapi/v1/os/allPARInfo?expired=1",
262+
"host": [
263+
"{{PortalEndPoint}}developer"
264+
],
265+
"path": [
266+
"appapi",
267+
"v1",
268+
"os",
269+
"allPARInfo"
270+
],
271+
"query": [
272+
{
273+
"key": "expired",
274+
"value": "1"
275+
}
276+
]
277+
}
278+
},
279+
"response": []
280+
}
281+
]
282+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"id": "fb846805-da2f-41c6-8e65-e130bb8ee676",
3+
"name": "R&A_PARVariables",
4+
"values": [
5+
{
6+
"key": "IDCSHostName",
7+
"value": "https://idcs-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.identity.oraclecloud.com",
8+
"type": "default",
9+
"enabled": true
10+
},
11+
{
12+
"key": "APPId",
13+
"value": "OC_RNA_CLIENT_xxxxxxxxxxxxxxxxxxxxx_APPID",
14+
"type": "default",
15+
"enabled": true
16+
},
17+
{
18+
"key": "APPSecret",
19+
"value": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
20+
"type": "default",
21+
"enabled": true
22+
},
23+
{
24+
"key": "TenantID",
25+
"value": "xxxxxxxxxxxxxxxxxxxx",
26+
"type": "default",
27+
"enabled": true
28+
},
29+
{
30+
"key": "Token",
31+
"value": "",
32+
"type": "default",
33+
"enabled": true
34+
},
35+
{
36+
"key": "PortalEndPoint",
37+
"value": "https://portal.ohra.oraclehospitality.ocs.oraclecloud.com/",
38+
"type": "default",
39+
"enabled": true
40+
},
41+
{
42+
"key": "Prefix",
43+
"value": "OS",
44+
"type": "default",
45+
"enabled": true
46+
},
47+
{
48+
"key": "FileName",
49+
"value": "filename.csv",
50+
"type": "default",
51+
"enabled": true
52+
},
53+
{
54+
"key": "MinutesToExpire",
55+
"value": "15",
56+
"type": "default",
57+
"enabled": true
58+
}
59+
],
60+
"_postman_variable_scope": "environment",
61+
"_postman_exported_at": "2024-08-21T14:22:54.677Z",
62+
"_postman_exported_using": "Postman/11.8.1"
63+
}

0 commit comments

Comments
 (0)