Class GeocodesRest
- java.lang.Object
-
- fr.paris.lutece.plugins.geocodesclient.rs.GeocodesRest
-
@Path("/rest/geocodesclient/api/v{version}") public class GeocodesRest extends ObjectCityRest
-
-
Field Summary
Fields Modifier and Type Field Description static StringERROR_DATE_RESOURCE
-
Constructor Summary
Constructors Constructor Description GeocodesRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetCityByCodeAndDate(Integer nVersion, String strCode, String strDateRef)Get City with datejavax.ws.rs.core.ResponsegetCityListByDate(Integer nVersion, String strVal, String strDateRef)Get City List with datejavax.ws.rs.core.ResponsegetCountiesListByNameAndDate(Integer nVersion, String strVal, String strDateRef)Search Countriesjavax.ws.rs.core.ResponsegetCountryByCodeAndDate(Integer nVersion, String strCode, String strDateRef)Get City with date
-
-
-
Field Detail
-
ERROR_DATE_RESOURCE
public static final String ERROR_DATE_RESOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCityListByDate
@GET @Path("/cities") @Produces("application/json") public javax.ws.rs.core.Response getCityListByDate(@PathParam("version") Integer nVersion, @QueryParam("search") String strVal, @QueryParam("additionalParam") String strDateRef)Get City List with date- Parameters:
nVersion- the API versionstrVal- the search stringdateRef- the reference date- Returns:
- the City List
-
getCityByCodeAndDate
@GET @Path("/cities/city") @Produces("application/json") public javax.ws.rs.core.Response getCityByCodeAndDate(@PathParam("version") Integer nVersion, @QueryParam("code") String strCode, @QueryParam("additionalParam") String strDateRef)Get City with date- Parameters:
nVersion- the API versionstrCode- the search stringdateRef- the reference date- Returns:
- the City List
-
getCountryByCodeAndDate
@GET @Path("/countries/country") @Produces("application/json") public javax.ws.rs.core.Response getCountryByCodeAndDate(@PathParam("version") Integer nVersion, @QueryParam("code") String strCode, @QueryParam("additionalParam") String strDateRef)Get City with date- Parameters:
nVersion- the API versionstrCode- the search stringdateRef- the reference date- Returns:
- the City List
-
getCountiesListByNameAndDate
@GET @Path("/countries") @Produces("application/json") public javax.ws.rs.core.Response getCountiesListByNameAndDate(@PathParam("version") Integer nVersion, @QueryParam("search") String strVal, @QueryParam("additionalParam") String strDateRef)Search Countries- Parameters:
nVersion- the API versionsearch- the searched stringdateRef- the reference date- Returns:
- the Countries
-
-