@Path(value="/rest/geocodes/api/v{version}/countries")
public class CountryRest
extends Object
| Constructor and Description |
|---|
CountryRest() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getCountiesByName(Integer nVersion,
String strVal)
Search Countries
|
javax.ws.rs.core.Response |
getCountry(Integer nVersion,
String id)
Get Country
|
javax.ws.rs.core.Response |
getCountryList(Integer nVersion)
Get Country List
|
@GET
@Path(value="")
@Produces(value="application/json")
public javax.ws.rs.core.Response getCountryList(@PathParam(value="version")
Integer nVersion)
nVersion - the API version@GET
@Path(value="/{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getCountry(@PathParam(value="version")
Integer nVersion,
@PathParam(value="id")
String id)
nVersion - the API versionid - the code@GET
@Path(value="/search/{searched_string}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getCountiesByName(@PathParam(value="version")
Integer nVersion,
@PathParam(value="searched_string")
String strVal)
nVersion - the API versionsearch - the searched stringCopyright © 2023 City of Paris. All rights reserved.