GET api/Driver/GetNotifications

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

NotificationListModel
NameDescriptionTypeAdditional information
NotificationModels

Collection of NotificationModel

None.

Response Formats

application/json, text/json

Sample:
{
  "NotificationModels": [
    {
      "Id": 1,
      "UserId": "sample string 2",
      "NotificationTitle": "sample string 3",
      "NotificationText": "sample string 4",
      "NotificationSent": true,
      "NotificationRead": true,
      "NotificationDateTime": "2026-02-21T23:34:21.2743734+05:30",
      "ActionId": 64,
      "GenId": 7
    },
    {
      "Id": 1,
      "UserId": "sample string 2",
      "NotificationTitle": "sample string 3",
      "NotificationText": "sample string 4",
      "NotificationSent": true,
      "NotificationRead": true,
      "NotificationDateTime": "2026-02-21T23:34:21.2743734+05:30",
      "ActionId": 64,
      "GenId": 7
    }
  ]
}

text/html

Sample:
{"NotificationModels":[{"Id":1,"UserId":"sample string 2","NotificationTitle":"sample string 3","NotificationText":"sample string 4","NotificationSent":true,"NotificationRead":true,"NotificationDateTime":"2026-02-21T23:34:21.2743734+05:30","ActionId":64,"GenId":7},{"Id":1,"UserId":"sample string 2","NotificationTitle":"sample string 3","NotificationText":"sample string 4","NotificationSent":true,"NotificationRead":true,"NotificationDateTime":"2026-02-21T23:34:21.2743734+05:30","ActionId":64,"GenId":7}]}

application/xml, text/xml

Sample:
<NotificationListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WITTravels.Models">
  <NotificationModels>
    <NotificationModel>
      <ActionId>64</ActionId>
      <GenId>7</GenId>
      <Id>1</Id>
      <NotificationDateTime>2026-02-21T23:34:21.2743734+05:30</NotificationDateTime>
      <NotificationRead>true</NotificationRead>
      <NotificationSent>true</NotificationSent>
      <NotificationText>sample string 4</NotificationText>
      <NotificationTitle>sample string 3</NotificationTitle>
      <UserId>sample string 2</UserId>
    </NotificationModel>
    <NotificationModel>
      <ActionId>64</ActionId>
      <GenId>7</GenId>
      <Id>1</Id>
      <NotificationDateTime>2026-02-21T23:34:21.2743734+05:30</NotificationDateTime>
      <NotificationRead>true</NotificationRead>
      <NotificationSent>true</NotificationSent>
      <NotificationText>sample string 4</NotificationText>
      <NotificationTitle>sample string 3</NotificationTitle>
      <UserId>sample string 2</UserId>
    </NotificationModel>
  </NotificationModels>
</NotificationListModel>