Skip to content

Commit b837649

Browse files
author
Angel Duran Maldonado
committed
"Streamlining the Auth Token variables and adding the Edog environment"
1 parent 6eff440 commit b837649

8 files changed

+178
-75
lines changed

Collections/OneNote API.postman_collection.json

+96-65
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"header": [
1919
{
2020
"key": "{{AppIdHeader}}",
21-
"value": "Testing",
21+
"value": "{{AppIdHeader_Value}}",
2222
"type": "text"
2323
},
2424
{
@@ -30,7 +30,7 @@
3030
],
3131
"body": {
3232
"mode": "raw",
33-
"raw": "{\"webUrls\":[\"https://one-my.spoppe.com/personal/amit_one_ccsctp_net/_layouts/15/WopiFrame.aspx?sourcedoc={62073058-629a-4855-b261-cd25d1594788}\"]}"
33+
"raw": "{\"webUrls\":[{{WebUrls}}]}"
3434
},
3535
"url": {
3636
"raw": "{{MeNotebooks}}/GetNotebooksFromWebUrls",
@@ -52,7 +52,7 @@
5252
"header": [
5353
{
5454
"key": "{{AppIdHeader}}",
55-
"value": "Testing",
55+
"value": "{{AppIdHeader_Value}}",
5656
"type": "text"
5757
},
5858
{
@@ -64,7 +64,7 @@
6464
],
6565
"body": {
6666
"mode": "raw",
67-
"raw": "{\"webUrl\":\"onenote:https://oconnectedservices-my.sharepoint.com/personal/csstar9_oconnectedservices_onmicrosoft_com/Documents/Notebooks/TeamsNotebook(Shared)\"}"
67+
"raw": "{\"webUrl\":{{WebUrl}}}"
6868
},
6969
"url": {
7070
"raw": "{{MeNotebooks}}/GetNotebookFromWebUrl",
@@ -93,7 +93,7 @@
9393
"header": [
9494
{
9595
"key": "{{AppIdHeader}}",
96-
"value": "Testing",
96+
"value": "{{AppIdHeader_Value}}",
9797
"type": "text"
9898
}
9999
],
@@ -121,7 +121,7 @@
121121
"header": [
122122
{
123123
"key": "{{AppIdHeader}}",
124-
"value": "Testing",
124+
"value": "{{AppIdHeader_Value}}",
125125
"type": "text"
126126
}
127127
],
@@ -145,7 +145,7 @@
145145
"header": [
146146
{
147147
"key": "{{AppIdHeader}}",
148-
"value": "Testing",
148+
"value": "{{AppIdHeader_Value}}",
149149
"type": "text"
150150
}
151151
],
@@ -169,7 +169,7 @@
169169
"header": [
170170
{
171171
"key": "{{AppIdHeader}}",
172-
"value": "Testing",
172+
"value": "{{AppIdHeader_Value}}",
173173
"type": "text"
174174
}
175175
],
@@ -204,13 +204,13 @@
204204
"name": "PATCH",
205205
"item": [
206206
{
207-
"name": "Insert-new-Empty-old",
207+
"name": "Insert-new-Replace-old",
208208
"request": {
209209
"method": "PATCH",
210210
"header": [
211211
{
212212
"key": "{{AppIdHeader}}",
213-
"value": "Testing",
213+
"value": "{{AppIdHeader_Value}}",
214214
"type": "text"
215215
},
216216
{
@@ -222,7 +222,7 @@
222222
],
223223
"body": {
224224
"mode": "raw",
225-
"raw": "[\r\n {\r\n \"action\": \"insert\",\r\n \"position\": \"before\",\r\n \"target\": \"p:{8aae008c-215b-4f52-9f48-bf78e3fce1be}{43}\",\r\n \"content\": \"<p data-tag=\\\"to-do:completed\\\" style=\\\"margin-top:0pt;margin-bottom:0pt\\\">Super task</p>\"\r\n }, {\r\n \"action\": \"replace\",\r\n \"target\": \"p:{8aae008c-215b-4f52-9f48-bf78e3fce1be}{43}\",\r\n \"content\": \"\"\r\n }\r\n]"
225+
"raw": "[\r\n {\r\n \"action\": \"insert\",\r\n \"position\": \"before\",\r\n \"target\": \"{{Replace_TargetId}}\",\r\n \"content\": \"<p data-tag=\\\"to-do:completed\\\" style=\\\"margin-top:0pt;margin-bottom:0pt\\\">Super task</p>\"\r\n }, {\r\n \"action\": \"replace\",\r\n \"target\": \"{{Replace_TargetId}}\",\r\n \"content\": \"\"\r\n }\r\n]"
226226
},
227227
"url": {
228228
"raw": "{{MePages}}/{{PageId}}/content",
@@ -246,7 +246,7 @@
246246
{
247247
"key": "{{AppIdHeader}}",
248248
"type": "text",
249-
"value": "Testing"
249+
"value": "{{AppIdHeader_Value}}"
250250
},
251251
{
252252
"key": "Content-Type",
@@ -257,7 +257,7 @@
257257
],
258258
"body": {
259259
"mode": "raw",
260-
"raw": "[\r\n {\r\n \"action\": \"replace\",\r\n \"target\": \"p:{ded17022-ade5-47d0-9b63-6c0f97096407}{172}\",\r\n \"content\":\"<p data-tag=\\\"to-do:completed\\\" style=\\\"margin-top:0pt;margin-bottom:0pt\\\">Super task</p>\"\r\n }\r\n]"
260+
"raw": "[\r\n {\r\n \"action\": \"replace\",\r\n \"target\": \"{{Replace_TargetId}}\",\r\n \"content\":\"<p data-tag=\\\"to-do:completed\\\" style=\\\"margin-top:0pt;margin-bottom:0pt\\\">Super task</p>\"\r\n }\r\n]"
261261
},
262262
"url": {
263263
"raw": "{{MePages}}/{{PageId}}/content",
@@ -283,47 +283,54 @@
283283
"name": "Wopi",
284284
"item": [
285285
{
286-
"name": "go",
287-
"request": {
288-
"method": "GET",
289-
"header": [],
290-
"body": {
291-
"mode": "raw",
292-
"raw": ""
293-
},
294-
"url": {
295-
"raw": "{{WopiHost}}/go",
296-
"host": [
297-
"{{WopiHost}}"
298-
],
299-
"path": [
300-
"go"
301-
]
302-
}
303-
},
304-
"response": []
305-
},
306-
{
307-
"name": "go/newpage",
308-
"request": {
309-
"method": "GET",
310-
"header": [],
311-
"body": {
312-
"mode": "raw",
313-
"raw": ""
286+
"name": "GET",
287+
"item": [
288+
{
289+
"name": "go",
290+
"request": {
291+
"method": "GET",
292+
"header": [],
293+
"body": {
294+
"mode": "raw",
295+
"raw": ""
296+
},
297+
"url": {
298+
"raw": "{{WopiHost}}/go",
299+
"host": [
300+
"{{WopiHost}}"
301+
],
302+
"path": [
303+
"go"
304+
]
305+
}
306+
},
307+
"response": []
314308
},
315-
"url": {
316-
"raw": "{{WopiHost}}/go/newpage",
317-
"host": [
318-
"{{WopiHost}}"
319-
],
320-
"path": [
321-
"go",
322-
"newpage"
323-
]
309+
{
310+
"name": "go/newpage",
311+
"request": {
312+
"method": "GET",
313+
"header": [],
314+
"body": {
315+
"mode": "raw",
316+
"raw": ""
317+
},
318+
"url": {
319+
"raw": "{{WopiHost}}/go/newpage",
320+
"host": [
321+
"{{WopiHost}}"
322+
],
323+
"path": [
324+
"go",
325+
"newpage"
326+
]
327+
}
328+
},
329+
"response": []
324330
}
325-
},
326-
"response": []
331+
],
332+
"description": "All the WOPI GET Requests.",
333+
"_postman_isSubFolder": true
327334
}
328335
],
329336
"description": "Wopi endpoints."
@@ -334,7 +341,7 @@
334341
"bearer": [
335342
{
336343
"key": "token",
337-
"value": "",
344+
"value": "{{AuthToken}}",
338345
"type": "string"
339346
}
340347
]
@@ -363,46 +370,70 @@
363370
],
364371
"variable": [
365372
{
366-
"id": "8aa3026f-405e-477e-8e1a-a33eac3d7831",
373+
"id": "7c2343fd-d006-4eb1-b913-42a523e25918",
367374
"key": "AppIdHeader",
368375
"value": "MS-Int-AppId",
369376
"type": "string"
370377
},
371378
{
372-
"id": "af2e604f-b6d5-44a9-bad8-54ba5de0e0a7",
379+
"id": "9dac6d04-8be5-4f61-a5a7-056ba6a730fd",
380+
"key": "AppIdHeader_Value",
381+
"value": "Testing",
382+
"type": "string"
383+
},
384+
{
385+
"id": "01d6276e-90bc-437c-9085-1292f1dfb5b0",
373386
"key": "Me",
374387
"value": "{{Site}}/api/{{version}}/me",
375388
"type": "string"
376389
},
377390
{
378-
"id": "73e0d52c-b52e-4fb2-882e-8e9e98a8645e",
391+
"id": "06a1148b-7b8f-4333-8c9c-6b31c406b78e",
379392
"key": "MeNotebooks",
380393
"value": "{{Me}}/notes/notebooks",
381394
"type": "string"
382395
},
383396
{
384-
"id": "058763e6-50e1-482f-8289-49d0e87bf754",
385-
"key": "MachineName",
386-
"value": "",
387-
"type": "string"
388-
},
389-
{
390-
"id": "88d198cb-7d94-48ce-90f0-8da08118dea4",
397+
"id": "753558a1-7b10-46f4-813f-2fedd55827df",
391398
"key": "WopiHost",
392399
"value": "{{Site}}/host",
393400
"type": "string"
394401
},
395402
{
396-
"id": "51d4e538-83ee-4f2d-9a2b-9fcbfaa8a031",
403+
"id": "21bce7bb-a66b-4c5e-8c43-9809ccadc7a0",
397404
"key": "MePages",
398405
"value": "{{Me}}/notes/pages",
399406
"type": "string"
400407
},
401408
{
402-
"id": "a676be03-bc41-4291-b6d9-0e543a7289f1",
409+
"id": "1f3b59cf-e276-4644-9f43-af923e124964",
403410
"key": "PageId",
404411
"value": "",
405412
"type": "string"
413+
},
414+
{
415+
"id": "817d88f8-14c4-4d18-8ca1-fdc1fb1555c7",
416+
"key": "MachineName",
417+
"value": "",
418+
"type": "string"
419+
},
420+
{
421+
"id": "e8a955f3-e8dc-4a8e-84c3-ea840800fbc2",
422+
"key": "WebUrl",
423+
"value": "",
424+
"type": "string"
425+
},
426+
{
427+
"id": "b8a349fc-1e61-467f-bf50-679f349204b7",
428+
"key": "WebUrls",
429+
"value": "",
430+
"type": "string"
431+
},
432+
{
433+
"id": "357fb504-74e5-4d23-8302-d73ef034c76a",
434+
"key": "Replace_TargetId",
435+
"value": "",
436+
"type": "string"
406437
}
407438
]
408439
}

Environments/Edog.postman_environment.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,16 @@
1919
"value": "beta",
2020
"description": "",
2121
"enabled": true
22+
},
23+
{
24+
"key": "AuthToken",
25+
"value": "{{PPE_AuthToken}}",
26+
"type": "text",
27+
"description": "",
28+
"enabled": true
2229
}
2330
],
2431
"_postman_variable_scope": "environment",
25-
"_postman_exported_at": "2018-10-15T18:24:48.303Z",
32+
"_postman_exported_at": "2018-10-16T17:43:26.584Z",
2633
"_postman_exported_using": "Postman/6.4.2"
2734
}

Environments/Local.postman_environment.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "60775b68-9285-48a8-bb20-149bbdfac2ac",
2+
"id": "28ad0cf9-4f15-4b5d-a3ad-717d30cfebcb",
33
"name": "Local",
44
"values": [
55
{
@@ -19,9 +19,15 @@
1919
"value": "beta",
2020
"description": "",
2121
"enabled": true
22+
},
23+
{
24+
"key": "AuthToken",
25+
"value": "{{PPE_AuthToken}}",
26+
"description": "",
27+
"enabled": true
2228
}
2329
],
2430
"_postman_variable_scope": "environment",
25-
"_postman_exported_at": "2018-10-15T18:24:50.465Z",
31+
"_postman_exported_at": "2018-10-16T16:55:52.546Z",
2632
"_postman_exported_using": "Postman/6.4.2"
2733
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"id": "00b54070-d643-4695-8c64-b679b065c905",
3+
"values": [
4+
{
5+
"key": "Prod_AuthToken",
6+
"value": "",
7+
"description": "",
8+
"enabled": true
9+
},
10+
{
11+
"key": "PPE_AuthToken",
12+
"value": "",
13+
"description": "",
14+
"enabled": true
15+
}
16+
],
17+
"name": "My Workspace Globals",
18+
"_postman_variable_scope": "globals",
19+
"_postman_exported_at": "2018-10-16T16:55:29.453Z",
20+
"_postman_exported_using": "Postman/6.4.2"
21+
}

Environments/Production_Beta-JPW.postman_environment.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"id": "434bc7e8-ebae-4f9b-928f-c3e1f1278080",
2+
"id": "6022a1ce-4116-43ab-ac3f-29dbad2340f8",
33
"name": "Production_Beta-JPW",
44
"values": [
55
{
66
"key": "region",
77
"value": "jpw-000",
8-
"type": "text",
98
"description": "",
109
"enabled": true
1110
},
@@ -26,9 +25,15 @@
2625
"value": "beta",
2726
"description": "",
2827
"enabled": true
28+
},
29+
{
30+
"key": "AuthToken",
31+
"value": "{{Prod_AuthToken}}",
32+
"description": "",
33+
"enabled": true
2934
}
3035
],
3136
"_postman_variable_scope": "environment",
32-
"_postman_exported_at": "2018-10-15T18:24:53.961Z",
37+
"_postman_exported_at": "2018-10-16T16:56:06.667Z",
3338
"_postman_exported_using": "Postman/6.4.2"
3439
}

0 commit comments

Comments
 (0)