POST api/Employee/Post

Request Information

URI Parameters

None.

Body Parameters

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.

Request 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
}

application/xml, text/xml

Sample:
<EmployeeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Webapi.Models.Account">
  <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:d2p1="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models.Pesquisa">
    <d2p1:piLookupModelOfstring>
      <d2p1:group>sample string 3</d2p1:group>
      <d2p1:text>sample string 2</d2p1:text>
      <d2p1:value>sample string 1</d2p1:value>
    </d2p1:piLookupModelOfstring>
    <d2p1:piLookupModelOfstring>
      <d2p1:group>sample string 3</d2p1:group>
      <d2p1:text>sample string 2</d2p1:text>
      <d2p1:value>sample string 1</d2p1:value>
    </d2p1:piLookupModelOfstring>
  </rolesList>
  <status>New</status>
</EmployeeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.