POST api/profile/cross/address/insert

Request Information

URI Parameters

None.

Body Parameters

CustomerAddressViewModel
NameDescriptionTypeAdditional information
idCliente

integer

None.

documento

string

None.

rua

string

None.

complemento

string

None.

numero

integer

None.

bairro

string

None.

cidade

string

None.

estado

string

None.

cep

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idCliente": 1,
  "documento": "sample string 1",
  "rua": "sample string 2",
  "complemento": "sample string 3",
  "numero": 1,
  "bairro": "sample string 4",
  "cidade": "sample string 5",
  "estado": "sample string 6",
  "cep": "sample string 7"
}

text/html

Sample:
{"idCliente":1,"documento":"sample string 1","rua":"sample string 2","complemento":"sample string 3","numero":1,"bairro":"sample string 4","cidade":"sample string 5","estado":"sample string 6","cep":"sample string 7"}

application/xml, text/xml

Sample:
<CustomerAddressViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.ViewModel">
  <bairro>sample string 4</bairro>
  <cep>sample string 7</cep>
  <cidade>sample string 5</cidade>
  <complemento>sample string 3</complemento>
  <documento>sample string 1</documento>
  <estado>sample string 6</estado>
  <idCliente>1</idCliente>
  <numero>1</numero>
  <rua>sample string 2</rua>
</CustomerAddressViewModel>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>