March 2018
Intermediate to advanced
310 pages
7h 10m
English
Let's introduce the cart service implementation. First of all, we have to add the new resources to the customer-gateway API.
package org.packt.swarm.petstore;import org.packt.swarm.petstore.api.CartItemView;import org.packt.swarm.petstore.api.CatalogItemView;import org.packt.swarm.petstore.cart.api.CartItem;import javax.inject.Inject;import javax.ws.rs.DELETE;import javax.ws.rs.GET;import javax.ws.rs.POST;import javax.ws.rs.Path;import javax.ws.rs.PathParam;import javax.ws.rs.Produces;import javax.ws.rs.QueryParam;import javax.ws.rs.core.Context;import javax.ws.rs.core.MediaType;import javax.ws.rs.core.Response;import javax.ws.rs.core.SecurityContext;import java.util.List;@Path("/"
Read now
Unlock full access