GET api/organization/employees/search?name={name}&all={all}

Search employees in the company by name and surname.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

string

None.

all

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

Collection of EmployeesSearchDTO
NameDescriptionTypeAdditional information
text

Employee name

string

None.

value

Employee ID

integer

None.

IsDeleted

Has employee been deleted

boolean

None.

IsCurrentUser

Does the entry refer to the current user

boolean

None.

AccountId

Account ID

integer

None.

Phone

Phone number

string

None.

Email

E-mail address

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "text": "sample string 1",
    "value": 2,
    "IsDeleted": true,
    "IsCurrentUser": true,
    "AccountId": 1,
    "Phone": "sample string 5",
    "Email": "sample string 6"
  },
  {
    "text": "sample string 1",
    "value": 2,
    "IsDeleted": true,
    "IsCurrentUser": true,
    "AccountId": 1,
    "Phone": "sample string 5",
    "Email": "sample string 6"
  }
]

text/html

Sample:
[{"text":"sample string 1","value":2,"IsDeleted":true,"IsCurrentUser":true,"AccountId":1,"Phone":"sample string 5","Email":"sample string 6"},{"text":"sample string 1","value":2,"IsDeleted":true,"IsCurrentUser":true,"AccountId":1,"Phone":"sample string 5","Email":"sample string 6"}]

application/xml, text/xml

Sample:
<ArrayOfEmployeesSearchDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <EmployeesSearchDTO>
    <AccountId>1</AccountId>
    <Email>sample string 6</Email>
    <IsCurrentUser>true</IsCurrentUser>
    <IsDeleted>true</IsDeleted>
    <Phone>sample string 5</Phone>
    <text>sample string 1</text>
    <value>2</value>
  </EmployeesSearchDTO>
  <EmployeesSearchDTO>
    <AccountId>1</AccountId>
    <Email>sample string 6</Email>
    <IsCurrentUser>true</IsCurrentUser>
    <IsDeleted>true</IsDeleted>
    <Phone>sample string 5</Phone>
    <text>sample string 1</text>
    <value>2</value>
  </EmployeesSearchDTO>
</ArrayOfEmployeesSearchDTO>