Postman Flashcards
collection
To have all the list of requests in one place
http Get request
Type:Get
Example url:https://localhost:44302/api/Alerts/active/3
SEND
you would be a response in the body section:
[
{
“alertId”: 1,
“alertScheduleId”: 1,
“message”: “Don’t forget your workbook is due 12/15/2019!”,
“url”: “https://insight.invisionapp.com/share/2YUPA0MVZB4#/screens/398015819”,
“linkText”: “GO TO WORKBOOK”,
“definition”: “”
},
{
“alertId”: 3,
“alertScheduleId”: 6,
“message”: “Your Daily ED Patient Report for 01/01/2020 is now available!”,
“url”: “https://insight.invisionapp.com/share/2YUPA0MVZB4#/screens/398259767”,
“linkText”: “VIEW IT HERE”,
“definition”: “Alert is triggered by an ED/Urgent care visit in the last 48hrs.”
},
{
“alertId”: 4,
“alertScheduleId”: 8,
“message”: “A new patient identified your practice as their PCP.”,
“url”: “https://insight.invisionapp.com/share/2YUPA0MVZB4#/screens/398259767”,
“linkText”: “CLICK HERE”,
“definition”: “Alert is triggered by a new patient at CCHMC who identified a PHO Practice”
}
]
it is a JSON array with the list of objects
SSL scertificate verification
set it to off when you are issuing a request to https site
Http Post
Type:POST
Headers: Content-Type application/json
Body: RAW-JSON-we specify the json object
{
"dateSelected": "2019-01-03T00:00:00", "divisionId": null, "subHandHygieneMomentId": 38, "compliance": "No ", "interventionId": 8, "hcwRoleId": 10, "comments": "", "observerName": "Pete Poulos", "locationId": 42, "dateStamp": "2015-10-02T08:11:25.94", "entryById": 28, "areaId": 5, "shiftId": 3, "area": null, "division": null, "entryBy": null, "hcwRole": null, "intervention": null, "location": null, "shift": null, "subHandHygieneMoment": null } We could also specify the parameters on the url: https://localhost:44359/api/Observation/SaveObservation/5
Web api method:
[httpget(“alerts/{observationID}”)]
public Task async (int observationID,[FromBody] obj observatoin)