GET api/Admin/ReadAllEmployeesForAdmin?NumberOfRecords={NumberOfRecords}&OffSet={OffSet}&AccountStatus={AccountStatus}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
NumberOfRecords

integer

Required

OffSet

integer

Required

AccountStatus

AccountStatus

Required

Body Parameters

None.

Response Information

Resource Description

Collection of R_Employee
NameDescriptionTypeAdditional information
RegistrationDate

date

None.

Deleted

boolean

None.

ModifiedBy

string

None.

ModifiedReasons

string

None.

LoginUserName

string

None.

LoginAcccountStatus

string

None.

EmployeeID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

StatusChangeReason

string

Required

FirstName

string

Required

String length: inclusive between 2 and 45

LastName

string

Required

String length: inclusive between 2 and 60

OtherNames

string

None.

Email

string

Required

Gender

Gender

Required

AddressID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

Status

AccountStatus

Required

PhoneNumber

string

Required

BirthDay

date

Required

Data type: DateTime

StartDate

date

Required

Data type: DateTime

Response Formats

application/json, text/json

Sample:
[
  {
    "registrationDate": "2019-05-21T14:26:57.3584486-07:00",
    "deleted": true,
    "modifiedBy": "sample string 3",
    "modifiedReasons": "sample string 4",
    "loginUserName": "sample string 5",
    "loginAcccountStatus": "sample string 6",
    "employeeID": 7,
    "statusChangeReason": "sample string 8",
    "firstName": "sample string 9",
    "lastName": "sample string 10",
    "otherNames": "sample string 11",
    "email": "sample string 12",
    "gender": "MALE",
    "addressID": 13,
    "status": "SUBMITTED",
    "phoneNumber": "sample string 14",
    "birthDay": "2019-05-21T14:26:57.3584486-07:00",
    "startDate": "2019-05-21T14:26:57.3584486-07:00"
  },
  {
    "registrationDate": "2019-05-21T14:26:57.3584486-07:00",
    "deleted": true,
    "modifiedBy": "sample string 3",
    "modifiedReasons": "sample string 4",
    "loginUserName": "sample string 5",
    "loginAcccountStatus": "sample string 6",
    "employeeID": 7,
    "statusChangeReason": "sample string 8",
    "firstName": "sample string 9",
    "lastName": "sample string 10",
    "otherNames": "sample string 11",
    "email": "sample string 12",
    "gender": "MALE",
    "addressID": 13,
    "status": "SUBMITTED",
    "phoneNumber": "sample string 14",
    "birthDay": "2019-05-21T14:26:57.3584486-07:00",
    "startDate": "2019-05-21T14:26:57.3584486-07:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_Employee>
    <AddressID>13</AddressID>
    <BirthDay>2019-05-21T14:26:57.3584486-07:00</BirthDay>
    <Email>sample string 12</Email>
    <FirstName>sample string 9</FirstName>
    <Gender>MALE</Gender>
    <LastName>sample string 10</LastName>
    <OtherNames>sample string 11</OtherNames>
    <PhoneNumber>sample string 14</PhoneNumber>
    <StartDate>2019-05-21T14:26:57.3584486-07:00</StartDate>
    <Status>SUBMITTED</Status>
    <EmployeeID>7</EmployeeID>
    <StatusChangeReason>sample string 8</StatusChangeReason>
    <Deleted>true</Deleted>
    <LoginAcccountStatus>sample string 6</LoginAcccountStatus>
    <LoginUserName>sample string 5</LoginUserName>
    <ModifiedBy>sample string 3</ModifiedBy>
    <ModifiedReasons>sample string 4</ModifiedReasons>
    <RegistrationDate>2019-05-21T14:26:57.3584486-07:00</RegistrationDate>
  </R_Employee>
  <R_Employee>
    <AddressID>13</AddressID>
    <BirthDay>2019-05-21T14:26:57.3584486-07:00</BirthDay>
    <Email>sample string 12</Email>
    <FirstName>sample string 9</FirstName>
    <Gender>MALE</Gender>
    <LastName>sample string 10</LastName>
    <OtherNames>sample string 11</OtherNames>
    <PhoneNumber>sample string 14</PhoneNumber>
    <StartDate>2019-05-21T14:26:57.3584486-07:00</StartDate>
    <Status>SUBMITTED</Status>
    <EmployeeID>7</EmployeeID>
    <StatusChangeReason>sample string 8</StatusChangeReason>
    <Deleted>true</Deleted>
    <LoginAcccountStatus>sample string 6</LoginAcccountStatus>
    <LoginUserName>sample string 5</LoginUserName>
    <ModifiedBy>sample string 3</ModifiedBy>
    <ModifiedReasons>sample string 4</ModifiedReasons>
    <RegistrationDate>2019-05-21T14:26:57.3584486-07:00</RegistrationDate>
  </R_Employee>
</ArrayOfR_Employee>

multipart/form-data

Sample:
<ArrayOfR_Employee xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_Employee><AddressID>13</AddressID><BirthDay>2019-05-21T14:26:57.3584486-07:00</BirthDay><Email>sample string 12</Email><FirstName>sample string 9</FirstName><Gender>MALE</Gender><LastName>sample string 10</LastName><OtherNames>sample string 11</OtherNames><PhoneNumber>sample string 14</PhoneNumber><StartDate>2019-05-21T14:26:57.3584486-07:00</StartDate><Status>SUBMITTED</Status><EmployeeID>7</EmployeeID><StatusChangeReason>sample string 8</StatusChangeReason><Deleted>true</Deleted><LoginAcccountStatus>sample string 6</LoginAcccountStatus><LoginUserName>sample string 5</LoginUserName><ModifiedBy>sample string 3</ModifiedBy><ModifiedReasons>sample string 4</ModifiedReasons><RegistrationDate>2019-05-21T14:26:57.3584486-07:00</RegistrationDate></R_Employee><R_Employee><AddressID>13</AddressID><BirthDay>2019-05-21T14:26:57.3584486-07:00</BirthDay><Email>sample string 12</Email><FirstName>sample string 9</FirstName><Gender>MALE</Gender><LastName>sample string 10</LastName><OtherNames>sample string 11</OtherNames><PhoneNumber>sample string 14</PhoneNumber><StartDate>2019-05-21T14:26:57.3584486-07:00</StartDate><Status>SUBMITTED</Status><EmployeeID>7</EmployeeID><StatusChangeReason>sample string 8</StatusChangeReason><Deleted>true</Deleted><LoginAcccountStatus>sample string 6</LoginAcccountStatus><LoginUserName>sample string 5</LoginUserName><ModifiedBy>sample string 3</ModifiedBy><ModifiedReasons>sample string 4</ModifiedReasons><RegistrationDate>2019-05-21T14:26:57.3584486-07:00</RegistrationDate></R_Employee></ArrayOfR_Employee>