Class CountryRest
java.lang.Object
fr.paris.lutece.plugins.geocodes.rs.CountryRest
CountryRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetCountiesByNameAndDate(Integer nVersion, String strVal, String strDateCountry) Search Countriesjavax.ws.rs.core.ResponsegetCountry(Integer nVersion, String id) Get Countryjavax.ws.rs.core.ResponsegetCountryList(Integer nVersion) Get Country List
-
Constructor Details
-
CountryRest
public CountryRest()
-
-
Method Details
-
getCountryList
@GET @Produces("application/json") public javax.ws.rs.core.Response getCountryList(@PathParam("version") Integer nVersion) Get Country List- Parameters:
nVersion- the API version- Returns:
- the Country List
-
getCountry
@GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getCountry(@PathParam("version") Integer nVersion, @PathParam("id") String id) Get Country- Parameters:
nVersion- the API versionid- the code- Returns:
- the Country
-
getCountiesByNameAndDate
@GET @Path("/search/{search}") @Produces("application/json") public javax.ws.rs.core.Response getCountiesByNameAndDate(@PathParam("version") Integer nVersion, @PathParam("search") String strVal, @QueryParam("dateref") String strDateCountry) Search Countries- Parameters:
nVersion- the API versionstrVal- the searched stringstrDateCountry- the date- Returns:
- the Countries
-