@Path(value="shops/{shopId}/products/{productId}/variations")
@RolesAllowed(value={"sf","admin"})
public final class VariationsResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private VariationService |
productVariationService |
private ShopRequestContextService |
shopService |
Constructor and Description |
---|
VariationsResource(VariationService variationService,
ShopRequestContextService shopService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getVariations(java.lang.String shopId,
GUID productId,
int page,
int resultsPerPage,
java.util.Locale locale)
Retrieve links to product variations in a paged item list.
|
private final ShopRequestContextService shopService
private final VariationService productVariationService
@Inject public VariationsResource(VariationService variationService, ShopRequestContextService shopService)
@GET @Produces(value="application/vnd.epages.v1+json") public javax.ws.rs.core.Response getVariations(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="productId") GUID productId, @QueryParam(value="page")@DefaultValue(value="1") int page, @QueryParam(value="resultsPerPage")@DefaultValue(value="100") int resultsPerPage, @QueryParam(value="locale") java.util.Locale locale)
shopId
- The current shopproductId
- The current productresultsPerPage
- Paging Parameter which defines the maximum number of products per page. Default: 100locale
- The ISO 639-1 for language code and ISO 3166-1 for country code. (Example: de_DE).