Skip to content

Instantly share code, notes, and snippets.

@rabithk
Created December 21, 2017 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rabithk/047efd7fb2dc381994fbcb60b5e6fc09 to your computer and use it in GitHub Desktop.
Save rabithk/047efd7fb2dc381994fbcb60b5e6fc09 to your computer and use it in GitHub Desktop.
Request:
GET /action-items/list HTTP/1.1
Host: test-headless.apps.dnadev.jnj
appName: hws.healthpartner.newberg.knees.mobile
type: notification {this will be new argument in header this can be action-items or notification}
Response :
[
{
"type": "PortalNotification",
"extension": {
"type": "Incomplete lessons",
"portalNotificationId": "3e13f2bc-eeab-47ac-9b9f-81f34cf6ca7a",
"pushNotification": [
{
"order": 0,
"title": null,
"message": "Time to get dental clearance for your surgery. Once scheduled, you can add the appointment to your Action List!",
"referenceDate": "Surgery date",
"daysUntilReference": "37",
"scheduleTimeDayHour": "11",
"scheduleTimeDayMinutes": "00",
"turnOffWhen": [
"Lessons complete",
"PT done"
]
},
{
"order": 1,
"title": null,
"message": "Time to get dental clearance for your surgery. Once scheduled, you can add the appointment to your Action List!",
"referenceDate": "Surgery date",
"daysUntilReference": "30",
"scheduleTimeDayHour": "11",
"scheduleTimeDayMinutes": "00",
"turnOffWhen": [
"PT done"
]
}
]
},
"title": "Get dental clearance for surgery."
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment