Skip to content

Instantly share code, notes, and snippets.

@MyFRA
Last active August 1, 2022 15:08
Show Gist options
  • Save MyFRA/b1a4d71d154b2f0ace93aa89e7eebfea to your computer and use it in GitHub Desktop.
Save MyFRA/b1a4d71d154b2f0ace93aa89e7eebfea to your computer and use it in GitHub Desktop.
Api Notification
{
"data": {
"total": 153,
"notifications": [
{
"id": 253,
"icon": "http://some-picture.png",
"title": "Notification Title",
"description": "lorem ipsum dolor sit amet",
"is_open": false,
"type": "private",
"created_at": "2022-09-21 23:59:59",
"target_screen": Tbd
}
]
}
}
@MyFRA
Copy link
Author

MyFRA commented Aug 1, 2022

Headers: {
Authorization: 'Bearer ' + token
}

@MyFRA
Copy link
Author

MyFRA commented Aug 1, 2022

QueryParam: {
page: number (number of page),
size: number (size of page)
}

@MyFRA
Copy link
Author

MyFRA commented Aug 1, 2022

Response:

  • [1] total: contains amount total of notifications
  • [1] notifications: array of object, contain all notifications
  • [2] id: identity of notification
  • [2] icon: image icon url
  • [2] title: notification title
  • [2] description: description of notification
  • [2] is_open: boolean status notification, is open or not
  • [2] type: contain type of notification enum [private, public]
  • [2] created_at: when notification is created, format Y-m-d H:i:s
  • [2] target_screen: Tbd (To be discussed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment