Class CountryRest

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

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

    • CountryRest

      public CountryRest()
  • Method Details

    • 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
    • getCountiesByNameAndDate

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