GET api/Department?username={username}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of utblUserDepartmentView
NameDescriptionTypeAdditional information
DepartmentID

integer

None.

DepartmentName

string

None.

DepartmentAddress

string

None.

EmergencyContactNo

string

None.

DepartmentEmailID

string

None.

DepartmentWebsite

string

None.

DepartmentLogo

string

None.

NoOfAlerts

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "DepartmentID": 1,
    "DepartmentName": "sample string 2",
    "DepartmentAddress": "sample string 3",
    "EmergencyContactNo": "sample string 4",
    "DepartmentEmailID": "sample string 5",
    "DepartmentWebsite": "sample string 6",
    "DepartmentLogo": "sample string 7",
    "NoOfAlerts": 8
  },
  {
    "DepartmentID": 1,
    "DepartmentName": "sample string 2",
    "DepartmentAddress": "sample string 3",
    "EmergencyContactNo": "sample string 4",
    "DepartmentEmailID": "sample string 5",
    "DepartmentWebsite": "sample string 6",
    "DepartmentLogo": "sample string 7",
    "NoOfAlerts": 8
  }
]

application/xml, text/xml

Sample:
<ArrayOfutblUserDepartmentView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mPigeonAPI.Models">
  <utblUserDepartmentView>
    <DepartmentAddress>sample string 3</DepartmentAddress>
    <DepartmentEmailID>sample string 5</DepartmentEmailID>
    <DepartmentID>1</DepartmentID>
    <DepartmentLogo>sample string 7</DepartmentLogo>
    <DepartmentName>sample string 2</DepartmentName>
    <DepartmentWebsite>sample string 6</DepartmentWebsite>
    <EmergencyContactNo>sample string 4</EmergencyContactNo>
    <NoOfAlerts>8</NoOfAlerts>
  </utblUserDepartmentView>
  <utblUserDepartmentView>
    <DepartmentAddress>sample string 3</DepartmentAddress>
    <DepartmentEmailID>sample string 5</DepartmentEmailID>
    <DepartmentID>1</DepartmentID>
    <DepartmentLogo>sample string 7</DepartmentLogo>
    <DepartmentName>sample string 2</DepartmentName>
    <DepartmentWebsite>sample string 6</DepartmentWebsite>
    <EmergencyContactNo>sample string 4</EmergencyContactNo>
    <NoOfAlerts>8</NoOfAlerts>
  </utblUserDepartmentView>
</ArrayOfutblUserDepartmentView>