Class CityRest
- java.lang.Object
-
- fr.paris.lutece.plugins.geocodes.rs.CityRest
-
@Path("/rest/geocodes/api/v{version}/cities") public class CityRest extends java.lang.ObjectCityRest
-
-
Constructor Summary
Constructors Constructor Description CityRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetCityByDate(java.lang.Integer nVersion, java.lang.String code, java.lang.String strDateCity)Get City by datejavax.ws.rs.core.ResponsegetCityCodesListByDate(java.lang.Integer nVersion, java.lang.String strDateCity)Get City List with datejavax.ws.rs.core.ResponsegetCityListByDate(java.lang.Integer nVersion, java.lang.String strVal, java.lang.String strDateCity)Get City List with datejavax.ws.rs.core.ResponsegetCityListByDateLike(java.lang.Integer nVersion, java.lang.String strVal, java.lang.String strDateCity)Get City List with date
-
-
-
Method Detail
-
getCityCodesListByDate
@GET @Path("/codes") @Produces("application/json") public javax.ws.rs.core.Response getCityCodesListByDate(@PathParam("version") java.lang.Integer nVersion, @QueryParam("dateref") java.lang.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") java.lang.Integer nVersion, @QueryParam("search") java.lang.String strVal, @QueryParam("dateref") java.lang.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") java.lang.Integer nVersion, @QueryParam("search") java.lang.String strVal, @QueryParam("dateref") java.lang.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") java.lang.Integer nVersion, @PathParam("id") java.lang.String code, @QueryParam("dateref") java.lang.String strDateCity)Get City by date- Parameters:
nVersion- the API versionid- the id- Returns:
- the City
-
-