Class LocationResource

java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.address.impl.rest.resources.LocationResource
All Implemented Interfaces:
RestResource

@Path("/location/suggestions") public class LocationResource extends AbstractRestResource
  • Constructor Details

    • LocationResource

      public LocationResource(AddressProvider addressProvider)
  • Method Details

    • getLocations

      @GET @Produces("application/json") public CollectionBean getLocations(@QueryParam("street") String street, @QueryParam("city") String city, @QueryParam("postcode") String postcode, @QueryParam("country") List<String> countries)
    • validate

      @POST @Path("/validate") @Consumes("application/json") @Produces("application/json") public LocationBean validate(LocationBean locationBean)