@Path(value="search/weights")
public class WeightingResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private WeightingService |
weightService |
Constructor and Description |
---|
WeightingResource(WeightingService weightService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteWeights(GUID shopGUID) |
javax.ws.rs.core.Response |
getWeights(GUID shopGUID) |
javax.ws.rs.core.Response |
setWeights(Weighting userDefinedWeights,
GUID shopGUID) |
private final WeightingService weightService
@Inject public WeightingResource(WeightingService weightService)
@GET @Produces(value="application/json") @Path(value="{id}") public javax.ws.rs.core.Response getWeights(@PathParam(value="id") GUID shopGUID)
@PUT @Produces(value="application/json") @Consumes(value="application/json") @Path(value="{id}") public javax.ws.rs.core.Response setWeights(Weighting userDefinedWeights, @PathParam(value="id") GUID shopGUID)
@DELETE @Path(value="{id}") public javax.ws.rs.core.Response deleteWeights(@PathParam(value="id") GUID shopGUID)