Class CountryRest
- java.lang.Object
-
- fr.paris.lutece.plugins.geocodes.rs.CountryRest
-
@Path("/rest/geocodes/api/v{version}/countries") public class CountryRest extends java.lang.ObjectCountryRest
-
-
Constructor Summary
Constructors Constructor Description CountryRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetCountiesByName(java.lang.Integer nVersion, java.lang.String strVal, java.lang.String strDateCountry)Search Countriesjavax.ws.rs.core.ResponsegetCountry(java.lang.Integer nVersion, java.lang.String id)Get Countryjavax.ws.rs.core.ResponsegetCountryList(java.lang.Integer nVersion)Get Country List
-
-
-
Method Detail
-
getCountryList
@GET @Produces("application/json") public javax.ws.rs.core.Response getCountryList(@PathParam("version") java.lang.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") java.lang.Integer nVersion, @PathParam("id") java.lang.String id)Get Country- Parameters:
nVersion- the API versionid- the code- Returns:
- the Country
-
getCountiesByName
@GET @Path("/search/{search}") @Produces("application/json") public javax.ws.rs.core.Response getCountiesByName(@PathParam("version") java.lang.Integer nVersion, @PathParam("search") java.lang.String strVal, @QueryParam("dateref") java.lang.String strDateCountry)Search Countries- Parameters:
nVersion- the API versionsearch- the searched string- Returns:
- the Countries
-
-