POST api/Jornalistas
Request Information
URI Parameters
None.
Body Parameters
ConsumidorHomeInputModelName | Description | Type | Additional information |
---|---|---|---|
Nome | string |
Required |
|
Veiculo | string |
String length: inclusive between 0 and 64 |
|
string |
Required Matching regular expression pattern: ^([0-9a-zA-Z]+([_.-]?[0-9a-zA-Z]+)*@[0-9a-zA-Z]+[0-9,a-z,A-Z,.,-]*(.){1}[a-zA-Z]{2,4})+$ |
||
EmailConfirmacao | string |
None. |
|
EstadoBrasil | EstadoBrasil |
None. |
|
TipoDeMidia | TipoDeMidiaJornalista |
None. |
|
Senha | string |
None. |
|
categorias | Collection of integer |
None. |
|
Sexo | Sexo |
None. |
Request Formats
application/json, text/json
Sample:
{ "Nome": "sample string 1", "Veiculo": "sample string 2", "Email": "sample string 3", "EmailConfirmacao": "sample string 4", "EstadoBrasil": 0, "TipoDeMidia": 0, "Senha": "sample string 5", "categorias": [ 1, 2 ], "Sexo": 0 }
application/xml, text/xml
Sample:
<ConsumidorHomeInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dino.Model.InputModel"> <Email>sample string 3</Email> <EmailConfirmacao>sample string 4</EmailConfirmacao> <EstadoBrasil>AC</EstadoBrasil> <Nome>sample string 1</Nome> <Senha>sample string 5</Senha> <Sexo>NaoInformado</Sexo> <TipoDeMidia>Internet</TipoDeMidia> <Veiculo>sample string 2</Veiculo> <categorias xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </categorias> </ConsumidorHomeInputModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |