Class CityRest
- java.lang.Object
-
- fr.paris.lutece.plugins.geocodes.rs.CityRest
-
@Path("/rest/geocodes/api/v{version}/cities") public class CityRest extends 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(Integer nVersion, String code, String strDateCity)Get City by 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
-
-
-
Method Detail
-
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
-
-