@Path(value="shops/{shopId}/products/{productId}/variations")
@RolesAllowed(value={"sf","products_read"})
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,
java.util.Locale locale,
int page,
int resultsPerPage)
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, application/json") public javax.ws.rs.core.Response getVariations(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="productId") GUID productId, @QueryParam(value="locale") java.util.Locale locale, @QueryParam(value="page") @DefaultValue(value="1") int page, @QueryParam(value="resultsPerPage") @DefaultValue(value="100") @Max(value=1000L) int resultsPerPage)
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).