Hands On Labs
- Oracle Code Sydney July 2017
Explore the Secured APIs with your API Key using Postman
This section provides instructions to use the Postman client to access the AnkiMedRec APIs running on the Oracle Cloud and secured using the API Platform Cloud Service. It builds upon the previous lab where you explored the APIs using Swagger UI.
Launch the Postman application (simply type postman in a terminal if using Linux) and create a new collection with a meaningful name eg APIs-Remote
Add a GET request to the collection using the following URL
https://apip.oracleau.cloud/api/medrec/physicians
Press Send to execute the GET Request. Notice that you get a HTTP 401 - Unauthorized error message returned.
Now specify two headers as follows:
X-App-Key
with a value ofYOUR_APIKEY
Note: You will see this value once logged in at the API Developers PortalContent-Type
with a value ofapplication/json
Press Send The GET Request should be accepted and Physician data returned.
Save the Request Information into your Collection.
Repeat the above steps but this time for POST requests. Verify that your POST Request was successful by running a GET request. Save your request into your collection for future reference.
- No warranty expressed or implied. Software is as is.
- MIT License