@Path(value="shops/{shopId}/start-page")
@RolesAllowed(value={"sf","admin"})
public final class StartPageResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ProductService |
productService |
private ShopRequestContextService |
shopService |
Constructor and Description |
---|
StartPageResource(ShopRequestContextService shopService,
ProductService productService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getProducts(java.lang.String shopId,
int page,
int resultsPerPage,
java.util.Locale locale,
java.util.Currency currency,
java.lang.String query) |
private final ShopRequestContextService shopService
private final ProductService productService
@Inject public StartPageResource(ShopRequestContextService shopService, ProductService productService)
@GET @Path(value="products") @Produces(value="application/vnd.epages.v1+json") public javax.ws.rs.core.Response getProducts(@PathParam(value="shopId") java.lang.String shopId, @QueryParam(value="page") int page, @QueryParam(value="resultsPerPage") int resultsPerPage, @QueryParam(value="locale") java.util.Locale locale, @QueryParam(value="currency") java.util.Currency currency, @QueryParam(value="q") java.lang.String query)