|
3 | 3 | 1.- First thing to do is to import all the environments into your Postman application.
|
4 | 4 | The environments are a set of rules that tell postman what endpoint it should be contacting, for example production, Edog or Local deployment.
|
5 | 5 | To do this, go to the "Manage Environments" menu in the top right settings icon, open it and click on the import button.
|
| 6 | + |
| 7 | + |
| 8 | + |
6 | 9 | Select all the files under the Environments folder and load them into Postman. Verify that all the new environments have been loaded by
|
7 | 10 | clicking in the drop down to the left of the "Manage Environments" menu.
|
8 | 11 |
|
| 12 | + |
| 13 | + |
9 | 14 | 2.- Now that you have all the environments loaded into your workspace, is time to load a collection of requests. These are the actual HTTP requests
|
10 | 15 | that postman will use to contact the selected environment. To do this, go to "File > Import" and drag all the collections files under the Collections folder.
|
| 16 | + |
| 17 | + |
| 18 | + |
11 | 19 | This will load all the HTTP requests that have been preconfigured for use with the OneNote API.
|
12 | 20 |
|
13 | 21 | 3.- The last thing to do is to specialize your collection to your local environment, this will tell postman what parameters to use for your machine and for your specific request scenarios.
|
14 | 22 | a.- Right click over the Collection that you want to configure and select Edit. This will open the collection configuration, in here navigate to the variables tab.
|
15 | 23 | Look for the "MachineName" parameter and add your machine's name TO THE "CURRENT VALUE" ONLY
|
16 | 24 | *** Do not add any of these local parameters to the initial value, the initial value is exported and we don't want to share these parameters with others ***
|
| 25 | + |
| 26 | + |
| 27 | + |
17 | 28 | b.- Go back into the "Manage Environments" menu and click on the "Globals" button. Here you will see the two different types of AuthTokens used to contact Production or PPE environments.
|
18 |
| - Add the necessary auth tokens to these variables (CURRENT VALUE ONLY) and hit save. The AuthTokens will expire after a while so you will have to come back and update their values every time |
| 29 | + Add the necessary auth tokens to these variables (CURRENT VALUE ONLY) and hit save. |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + The AuthTokens will expire after a while so you will have to come back and update their values every time |
19 | 34 | that happens.
|
20 | 35 |
|
21 | 36 | Now you should be able to open any of the requests and hit the Send button to execute.
|
|
0 commit comments