GET api/Employee/GetAll

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of EmployeeDto
NameDescriptionTypeAdditional information
firstName

string

Required

lastName

string

Required

telefone

string

Required

cpf

string

Required

status

UserStatusEnum

None.

email

string

Required

rolesList

Collection of piLookupModelOfString

None.

password

string

Data type: Password

String length: inclusive between 8 and 100

rg

string

None.

issuingAuthority

string

None.

key

integer

None.

id

integer

None.

isNew

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "firstName": "sample string 1",
    "lastName": "sample string 2",
    "telefone": "3",
    "cpf": "4",
    "status": 1,
    "email": "sample string 5",
    "rolesList": [
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      },
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      }
    ],
    "password": "sample string 6",
    "rg": "7",
    "issuingAuthority": "sample string 8",
    "key": 9,
    "id": 9,
    "isNew": true
  },
  {
    "firstName": "sample string 1",
    "lastName": "sample string 2",
    "telefone": "3",
    "cpf": "4",
    "status": 1,
    "email": "sample string 5",
    "rolesList": [
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      },
      {
        "value": "sample string 1",
        "text": "sample string 2",
        "group": "sample string 3"
      }
    ],
    "password": "sample string 6",
    "rg": "7",
    "issuingAuthority": "sample string 8",
    "key": 9,
    "id": 9,
    "isNew": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfEmployeeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Webapi.Models.Account">
  <EmployeeDto>
    <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
    <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">9</key>
    <cpf>4</cpf>
    <firstName>sample string 1</firstName>
    <issuingAuthority>sample string 8</issuingAuthority>
    <lastName>sample string 2</lastName>
    <rg>7</rg>
    <telefone>3</telefone>
    <email>sample string 5</email>
    <password>sample string 6</password>
    <rolesList xmlns:d3p1="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models.Pesquisa">
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
    </rolesList>
    <status>New</status>
  </EmployeeDto>
  <EmployeeDto>
    <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
    <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">9</key>
    <cpf>4</cpf>
    <firstName>sample string 1</firstName>
    <issuingAuthority>sample string 8</issuingAuthority>
    <lastName>sample string 2</lastName>
    <rg>7</rg>
    <telefone>3</telefone>
    <email>sample string 5</email>
    <password>sample string 6</password>
    <rolesList xmlns:d3p1="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models.Pesquisa">
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
      <d3p1:piLookupModelOfstring>
        <d3p1:group>sample string 3</d3p1:group>
        <d3p1:text>sample string 2</d3p1:text>
        <d3p1:value>sample string 1</d3p1:value>
      </d3p1:piLookupModelOfstring>
    </rolesList>
    <status>New</status>
  </EmployeeDto>
</ArrayOfEmployeeDto>