Class CityRest


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

      Constructors 
      Constructor Description
      CityRest()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getCityByDate​(java.lang.Integer nVersion, java.lang.String code, java.lang.String strDateCity)
      Get City by date
      javax.ws.rs.core.Response getCityCodesListByDate​(java.lang.Integer nVersion, java.lang.String strDateCity)
      Get City List with date
      javax.ws.rs.core.Response getCityListByDate​(java.lang.Integer nVersion, java.lang.String strVal, java.lang.String strDateCity)
      Get City List with date
      javax.ws.rs.core.Response getCityListByDateLike​(java.lang.Integer nVersion, java.lang.String strVal, java.lang.String strDateCity)
      Get City List with date
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CityRest

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