Home / API / ASP.NET Web API Details

GET api/v1/Employees/GetEmployeesListByCompany?companyid={companyid}&page={page}&pagelimit={pagelimit}

Description

Get Employees List By Company

Request Information

Parameters

NameDescriptionAdditional information
companyid

Define this parameter in the request URI.

page

Define this parameter in the request URI.

pagelimit

Define this parameter in the request URI.

Response Information

Get Employees Information. To get the entire list of employees pass -1 as page limit

Response body formats

application/json, text/json

Sample:
[
  {
    "employeeid": 1,
    "companyid": 2,
    "employeefirstname": "sample string 3",
    "employeelastname": "sample string 4",
    "istechnician": true,
    "isactive": true,
    "utclastchanged": "2025-02-23T06:02:07.2178418+00:00",
    "lastchangedby": "sample string 5",
    "utctimestamp": "2025-02-23T06:02:07.2178418+00:00",
    "phonenumber": "sample string 6",
    "emailaddress": "sample string 7"
  },
  {
    "employeeid": 1,
    "companyid": 2,
    "employeefirstname": "sample string 3",
    "employeelastname": "sample string 4",
    "istechnician": true,
    "isactive": true,
    "utclastchanged": "2025-02-23T06:02:07.2178418+00:00",
    "lastchangedby": "sample string 5",
    "utctimestamp": "2025-02-23T06:02:07.2178418+00:00",
    "phonenumber": "sample string 6",
    "emailaddress": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfemployeeslistmodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <employeeslistmodel>
    <companyid>2</companyid>
    <emailaddress>sample string 7</emailaddress>
    <employeefirstname>sample string 3</employeefirstname>
    <employeeid>1</employeeid>
    <employeelastname>sample string 4</employeelastname>
    <isactive>true</isactive>
    <istechnician>true</istechnician>
    <lastchangedby>sample string 5</lastchangedby>
    <phonenumber>sample string 6</phonenumber>
    <utclastchanged>2025-02-23T06:02:07.2178418+00:00</utclastchanged>
    <utctimestamp>2025-02-23T06:02:07.2178418+00:00</utctimestamp>
  </employeeslistmodel>
  <employeeslistmodel>
    <companyid>2</companyid>
    <emailaddress>sample string 7</emailaddress>
    <employeefirstname>sample string 3</employeefirstname>
    <employeeid>1</employeeid>
    <employeelastname>sample string 4</employeelastname>
    <isactive>true</isactive>
    <istechnician>true</istechnician>
    <lastchangedby>sample string 5</lastchangedby>
    <phonenumber>sample string 6</phonenumber>
    <utclastchanged>2025-02-23T06:02:07.2178418+00:00</utclastchanged>
    <utctimestamp>2025-02-23T06:02:07.2178418+00:00</utctimestamp>
  </employeeslistmodel>
</ArrayOfemployeeslistmodel>