GET api/Notifications/getNotifications?user_id={user_id}&userType={userType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user_id

integer

Required

userType

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of tbl_notification
NameDescriptionTypeAdditional information
id

integer

None.

to_receiver_id

integer

None.

from_sender_id

integer

None.

receiver_user_type

integer

None.

readState

boolean

None.

notification_title

string

None.

notification_text

string

None.

notification_date

string

None.

notification_type

string

None.

subject_id

integer

None.

lastModified

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "to_receiver_id": 1,
    "from_sender_id": 1,
    "receiver_user_type": 1,
    "readState": true,
    "notification_title": "sample string 2",
    "notification_text": "sample string 3",
    "notification_date": "sample string 4",
    "notification_type": "sample string 5",
    "subject_id": 1,
    "lastModified": 6
  },
  {
    "id": 1,
    "to_receiver_id": 1,
    "from_sender_id": 1,
    "receiver_user_type": 1,
    "readState": true,
    "notification_title": "sample string 2",
    "notification_text": "sample string 3",
    "notification_date": "sample string 4",
    "notification_type": "sample string 5",
    "subject_id": 1,
    "lastModified": 6
  }
]

application/xml, text/xml

Sample:
<ArrayOftbl_notification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoetAPI.Models">
  <tbl_notification>
    <from_sender_id>1</from_sender_id>
    <id>1</id>
    <lastModified>6</lastModified>
    <notification_date>sample string 4</notification_date>
    <notification_text>sample string 3</notification_text>
    <notification_title>sample string 2</notification_title>
    <notification_type>sample string 5</notification_type>
    <readState>true</readState>
    <receiver_user_type>1</receiver_user_type>
    <subject_id>1</subject_id>
    <to_receiver_id>1</to_receiver_id>
  </tbl_notification>
  <tbl_notification>
    <from_sender_id>1</from_sender_id>
    <id>1</id>
    <lastModified>6</lastModified>
    <notification_date>sample string 4</notification_date>
    <notification_text>sample string 3</notification_text>
    <notification_title>sample string 2</notification_title>
    <notification_type>sample string 5</notification_type>
    <readState>true</readState>
    <receiver_user_type>1</receiver_user_type>
    <subject_id>1</subject_id>
    <to_receiver_id>1</to_receiver_id>
  </tbl_notification>
</ArrayOftbl_notification>