-
Notifications
You must be signed in to change notification settings - Fork 3
POST Machine Logging Config (Debug, Info and Error) #191
hken920 edited this page Mar 14, 2020
·
3 revisions
https://github.com/North-Seattle-College/ad440-winter2020-tuesday-repo/issues/191
Prerequisites:
Install Postman
IoT Hub resource
Step 1: Open Postman and start new tab
- In Postman click "+" tab to start a new tab
- Select POST in drop down menu to the left of parameter field
Step 2: Paste URL into Postman
* https://ken-fun-feat-usw2-task60.azurewebsites.net/api/postrequest?code=j6x7Br2k3VLjoFakea3fWXG35G6vZJnal/uFWmO7kbv2S141bbLczg==
Step 3: Write test JSON file in Postman
- Click Body tab under URL field
- Select raw option located under "Body" tab
- In the orange drop down bar located to the right of "GraphQL" change text to JSON
- Write test code in the body of JSON following this format
-
{ "Model":"_string_", "ModelNum":"_string_", "ModelPhoto": null, "SerialNum":"_string_", "VendorID":0, "LocationID":1010 }
Step 4: Select request and send
- Select POST request and click Send
Step 5: Navigate to Function app to check logs
- Sign in Azure portal > Resource Groups > ken-rg-feat-usw2-task60 > Function app resource (ken-fun-feat-usw2-task60) > Monitor