public interface ViaCEPGWTService
extends org.fusesource.restygwt.client.RestService
ViaCEPGWTClient para acessar os web services da ViaCEP.| Modifier and Type | Method and Description |
|---|---|
void |
getEndereco(String cep,
org.fusesource.restygwt.client.MethodCallback<ViaCEPEndereco> callback) |
void |
getEnderecos(String uf,
String localidade,
String logradouro,
org.fusesource.restygwt.client.JsonCallback callback) |
@Path(value="//viacep.com.br/ws/{cep}/json/")
@JSONP(callbackParam="callback")
void getEndereco(@PathParam(value="cep")
String cep,
org.fusesource.restygwt.client.MethodCallback<ViaCEPEndereco> callback)
@Path(value="//viacep.com.br/ws/{uf}/{localidade}/{logradouro}/json/")
@JSONP(callbackParam="callback")
void getEnderecos(@PathParam(value="uf")
String uf,
@PathParam(value="localidade")
String localidade,
@PathParam(value="logradouro")
String logradouro,
org.fusesource.restygwt.client.JsonCallback callback)
Copyright © 2015. All rights reserved.