Class CityRest


  • @Path("/rest/geocodes/api/v{version}/cities")
    public class CityRest
    extends Object
    CityRest
    • Constructor Detail

      • CityRest

        public CityRest()
    • 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 version
        id - the id
        Returns:
        the City