POST api/v1/Employee
Retrieve the list of employees.
Request Information
URI Parameters
None.
Body Parameters
Params| Name | Description | Type | Additional information |
|---|---|---|---|
| apiKey |
Please contact Caliq support to get your key |
string |
Required Max length: 30 |
Request Formats
application/json, text/json
Sample:
{
"apiKey": "sample string 1"
}
application/xml, text/xml
Sample:
<Params xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <apiKey>sample string 1</apiKey> </Params>
Response Information
Resource Description
Returns:
200 OK Returns a list of employees as XML or JSON
400 Bad Request - parameters supplied cannot be properly interpreted
401 Not Authorised if supplied api key is not valid
204 No Content if there are no matching records in Caliq
503 Service Unavailable
| Name | Description | Type | Additional information |
|---|---|---|---|
| EmployeeList | Collection of Employee |
None. |
Response Formats
application/json, text/json
Sample:
{
"EmployeeList": [
{
"ID": "sample string 1",
"Name": "sample string 2",
"Email": "sample string 3",
"Phone": "sample string 4",
"SalesRep": true,
"OfficeRep": true,
"AccountMgr": true
},
{
"ID": "sample string 1",
"Name": "sample string 2",
"Email": "sample string 3",
"Phone": "sample string 4",
"SalesRep": true,
"OfficeRep": true,
"AccountMgr": true
}
]
}
application/xml, text/xml
Sample:
<Employees xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Employee>
<ID>sample string 1</ID>
<Name>sample string 2</Name>
<Email>sample string 3</Email>
<Phone>sample string 4</Phone>
<SalesRep>true</SalesRep>
<OfficeRep>true</OfficeRep>
<AccountMgr>true</AccountMgr>
</Employee>
<Employee>
<ID>sample string 1</ID>
<Name>sample string 2</Name>
<Email>sample string 3</Email>
<Phone>sample string 4</Phone>
<SalesRep>true</SalesRep>
<OfficeRep>true</OfficeRep>
<AccountMgr>true</AccountMgr>
</Employee>
</Employees>