GET api/BuscarCEP?cep={cep}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cep

string

Required

Body Parameters

None.

Response Information

Resource Description

VIACEPSERVER
NameDescriptionTypeAdditional information
cep

string

None.

logradouro

string

None.

complemento

string

None.

bairro

string

None.

localidade

string

None.

uf

string

None.

ibge

string

None.

gia

string

None.

Response Formats

application/json, text/json

Sample:
{
  "cep": "sample string 1",
  "logradouro": "sample string 2",
  "complemento": "sample string 3",
  "bairro": "sample string 4",
  "localidade": "sample string 5",
  "uf": "sample string 6",
  "ibge": "sample string 7",
  "gia": "sample string 8"
}

application/xml, text/xml

Sample:
<VIACEPSERVER xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.DTO">
  <bairro>sample string 4</bairro>
  <cep>sample string 1</cep>
  <complemento>sample string 3</complemento>
  <gia>sample string 8</gia>
  <ibge>sample string 7</ibge>
  <localidade>sample string 5</localidade>
  <logradouro>sample string 2</logradouro>
  <uf>sample string 6</uf>
</VIACEPSERVER>