Class CountryRest


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

      • CountryRest

        public CountryRest()
    • Method Detail

      • getCountryList

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getCountryList​(@PathParam("version")
                                                        Integer nVersion)
        Get Country List
        Parameters:
        nVersion - the API version
        Returns:
        the Country List
      • getCountry

        @GET
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCountry​(@PathParam("version")
                                                    Integer nVersion,
                                                    @PathParam("id")
                                                    String id)
        Get Country
        Parameters:
        nVersion - the API version
        id - the code
        Returns:
        the Country
      • getCountiesByName

        @GET
        @Path("/search/{search}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCountiesByName​(@PathParam("version")
                                                           Integer nVersion,
                                                           @PathParam("search")
                                                           String strVal,
                                                           @QueryParam("dateref")
                                                           String strDateCountry)
        Search Countries
        Parameters:
        nVersion - the API version
        search - the searched string
        Returns:
        the Countries