POST api/employees/detailList

Gets the employee details for the ids passed as a parameter.

Request Information

URI Parameters

None.

Body Parameters

an object which encapsulates the list of employee ids to retrieve the details for

EmployeeIdListHolder
NameDescriptionTypeAdditional information
EmployeeIdList

Collection of integer

Required

Request Formats

application/json, text/json

Sample:
{
  "EmployeeIdList": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<EmployeeIdListHolder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO">
  <EmployeeIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </EmployeeIdList>
</EmployeeIdListHolder>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmployeeIdListHolder'.

Response Information

Resource Description

An Http response message with the following status codes: 200 = success (includes the profile data found), 400 = bad request (the request is malformed or with invalid data), 404 = not found (this is returned when there is no profile data) 500 = something went wrong (the request was not processed).

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.