PUT api/Empregado/{id}

Altera as informações do empregado

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

do empregado a alterar

integer

Required

Body Parameters

nova informacao a atualizar

Empregado
NameDescriptionTypeAdditional information
Id

integer

None.

Nome

string

None.

Apelido

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Nome": "sample string 2",
  "Apelido": "sample string 3"
}

application/xml, text/xml

Sample:
<Empregado xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication.Models">
  <Apelido>sample string 3</Apelido>
  <Id>1</Id>
  <Nome>sample string 2</Nome>
</Empregado>

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 'Empregado'.

Response Information

Resource Description

None.