Class CityRest
java.lang.Object
fr.paris.lutece.plugins.geocodes.rs.CityRest
CityRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetCityByDate(Integer nVersion, String code, String strDateCity) Get City by datejavax.ws.rs.core.ResponsegetCityCodesListByDate(Integer nVersion, String strDateCity) Get City List with datejavax.ws.rs.core.ResponsegetCityListByDate(Integer nVersion, String strVal, String strDateCity) Get City List with datejavax.ws.rs.core.ResponsegetCityListByDateLike(Integer nVersion, String strVal, String strDateCity) Get City List with date
-
Constructor Details
-
CityRest
public CityRest()
-
-
Method Details
-
getCityCodesListByDate
@GET @Path("/codes") @Produces("application/json") public javax.ws.rs.core.Response getCityCodesListByDate(@PathParam("version") Integer nVersion, @QueryParam("dateref") String strDateCity) Get City List with date- Parameters:
nVersion- the API version- Returns:
- the City List
-
getCityListByDate
@GET @Produces("application/json") public javax.ws.rs.core.Response getCityListByDate(@PathParam("version") Integer nVersion, @QueryParam("search") String strVal, @QueryParam("dateref") String strDateCity) Get City List with date- Parameters:
nVersion- the API version- Returns:
- the City List
-
getCityListByDateLike
@GET @Path("/list") @Produces("application/json") public javax.ws.rs.core.Response getCityListByDateLike(@PathParam("version") Integer nVersion, @QueryParam("search") String strVal, @QueryParam("dateref") String strDateCity) Get City List with date- Parameters:
nVersion- the API version- Returns:
- the City List
-
getCityByDate
@GET @Path("/{id}") @Produces("application/json") public javax.ws.rs.core.Response getCityByDate(@PathParam("version") Integer nVersion, @PathParam("id") String code, @QueryParam("dateref") String strDateCity) Get City by date- Parameters:
nVersion- the API versionid- the id- Returns:
- the City
-