Postman Flashcards

1
Q

collection

A

To have all the list of requests in one place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

http Get request

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SSL scertificate verification

A

set it to off when you are issuing a request to https site

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Http Post

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly