@Path(value="shops/{shopId}/carts")
@RolesAllowed(value={"sf","admin"})
public final class CartResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CartService |
service |
Constructor and Description |
---|
CartResource(CartService service) |
private final CartService service
@Inject public CartResource(CartService service)
@POST @Produces(value="application/vnd.epages.v1+json") @Consumes(value="application/json") public javax.ws.rs.core.Response create(@PathParam(value="shopId") java.lang.String shopId, CartInput cartIn)
shopId
- Unique identifier of the shopcartIn
- Cart creation input@GET @Path(value="{cartId}") @Produces(value="application/vnd.epages.v1+json") public javax.ws.rs.core.Response get(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="cartId") GUID cartId)
shopId
- Unique identifier of the shopcartId
- Unique identifier of the cart