Class CityRest

java.lang.Object
fr.paris.lutece.plugins.geocodes.rs.CityRest

@Path("/rest/geocodes/api/v{version}/cities") public class CityRest extends Object
CityRest
  • 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 version
      id - the id
      Returns:
      the City