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
EmployeeID

integer

None.

LoginUserName

string

None.

Email

string

None.

FirstName

string

Required

String length: inclusive between 2 and 45

LastName

string

Required

String length: inclusive between 2 and 60

OtherNames

string

None.

Gender

Gender

Required

PhoneNumber

string

Required

BirthDate

date

Required

Data type: Date

StartDate

date

Required

Data type: Date

Address

W_Address

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "employeeID": 1,
    "loginUserName": "sample string 2",
    "email": "sample string 3",
    "firstName": "sample string 4",
    "lastName": "sample string 5",
    "otherNames": "sample string 6",
    "gender": "MALE",
    "phoneNumber": "sample string 7",
    "birthDate": "2019-07-23T18:00:42.9788353-07:00",
    "startDate": "2019-07-23T18:00:42.9788353-07:00",
    "address": {
      "addressStreetAddress1": "sample string 1",
      "addressStreetAddress2": "sample string 2",
      "addressCity": "sample string 3",
      "addressState": "sample string 4",
      "addressZipCode": "sample string 5",
      "addressCountry": "sample string 6"
    }
  },
  {
    "employeeID": 1,
    "loginUserName": "sample string 2",
    "email": "sample string 3",
    "firstName": "sample string 4",
    "lastName": "sample string 5",
    "otherNames": "sample string 6",
    "gender": "MALE",
    "phoneNumber": "sample string 7",
    "birthDate": "2019-07-23T18:00:42.9788353-07:00",
    "startDate": "2019-07-23T18:00:42.9788353-07:00",
    "address": {
      "addressStreetAddress1": "sample string 1",
      "addressStreetAddress2": "sample string 2",
      "addressCity": "sample string 3",
      "addressState": "sample string 4",
      "addressZipCode": "sample string 5",
      "addressCountry": "sample string 6"
    }
  }
]

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>
    <Address>
      <AddressCity>sample string 3</AddressCity>
      <AddressCountry>sample string 6</AddressCountry>
      <AddressState>sample string 4</AddressState>
      <AddressStreetAddress1>sample string 1</AddressStreetAddress1>
      <AddressStreetAddress2>sample string 2</AddressStreetAddress2>
      <AddressZipCode>sample string 5</AddressZipCode>
    </Address>
    <BirthDate>2019-07-23T18:00:42.9788353-07:00</BirthDate>
    <FirstName>sample string 4</FirstName>
    <Gender>MALE</Gender>
    <LastName>sample string 5</LastName>
    <OtherNames>sample string 6</OtherNames>
    <PhoneNumber>sample string 7</PhoneNumber>
    <StartDate>2019-07-23T18:00:42.9788353-07:00</StartDate>
    <Email>sample string 3</Email>
    <EmployeeID>1</EmployeeID>
    <LoginUserName>sample string 2</LoginUserName>
  </R_Employee>
  <R_Employee>
    <Address>
      <AddressCity>sample string 3</AddressCity>
      <AddressCountry>sample string 6</AddressCountry>
      <AddressState>sample string 4</AddressState>
      <AddressStreetAddress1>sample string 1</AddressStreetAddress1>
      <AddressStreetAddress2>sample string 2</AddressStreetAddress2>
      <AddressZipCode>sample string 5</AddressZipCode>
    </Address>
    <BirthDate>2019-07-23T18:00:42.9788353-07:00</BirthDate>
    <FirstName>sample string 4</FirstName>
    <Gender>MALE</Gender>
    <LastName>sample string 5</LastName>
    <OtherNames>sample string 6</OtherNames>
    <PhoneNumber>sample string 7</PhoneNumber>
    <StartDate>2019-07-23T18:00:42.9788353-07:00</StartDate>
    <Email>sample string 3</Email>
    <EmployeeID>1</EmployeeID>
    <LoginUserName>sample string 2</LoginUserName>
  </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><Address><AddressCity>sample string 3</AddressCity><AddressCountry>sample string 6</AddressCountry><AddressState>sample string 4</AddressState><AddressStreetAddress1>sample string 1</AddressStreetAddress1><AddressStreetAddress2>sample string 2</AddressStreetAddress2><AddressZipCode>sample string 5</AddressZipCode></Address><BirthDate>2019-07-23T18:00:42.9788353-07:00</BirthDate><FirstName>sample string 4</FirstName><Gender>MALE</Gender><LastName>sample string 5</LastName><OtherNames>sample string 6</OtherNames><PhoneNumber>sample string 7</PhoneNumber><StartDate>2019-07-23T18:00:42.9788353-07:00</StartDate><Email>sample string 3</Email><EmployeeID>1</EmployeeID><LoginUserName>sample string 2</LoginUserName></R_Employee><R_Employee><Address><AddressCity>sample string 3</AddressCity><AddressCountry>sample string 6</AddressCountry><AddressState>sample string 4</AddressState><AddressStreetAddress1>sample string 1</AddressStreetAddress1><AddressStreetAddress2>sample string 2</AddressStreetAddress2><AddressZipCode>sample string 5</AddressZipCode></Address><BirthDate>2019-07-23T18:00:42.9788353-07:00</BirthDate><FirstName>sample string 4</FirstName><Gender>MALE</Gender><LastName>sample string 5</LastName><OtherNames>sample string 6</OtherNames><PhoneNumber>sample string 7</PhoneNumber><StartDate>2019-07-23T18:00:42.9788353-07:00</StartDate><Email>sample string 3</Email><EmployeeID>1</EmployeeID><LoginUserName>sample string 2</LoginUserName></R_Employee></ArrayOfR_Employee>