@Path(value="shops/{shopId}/sitemaps")
@RolesAllowed(value="products_read")
public class SitemapResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CategoryService |
categoryService |
private static int |
MAX_PRODUCTS_NUMBER |
private Searcher |
searcher |
private java.lang.String |
shopId |
private ShopRequestContextService |
shopService |
Constructor and Description |
---|
SitemapResource(ShopRequestContextService shopService,
Searcher searcher,
CategoryService categoryService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getCategories() |
javax.ws.rs.core.Response |
getProducts() |
javax.ws.rs.core.Response |
getSitemap() |
private static final int MAX_PRODUCTS_NUMBER
private final ShopRequestContextService shopService
private final CategoryService categoryService
private final Searcher searcher
@PathParam(value="shopId") private java.lang.String shopId
@Inject public SitemapResource(ShopRequestContextService shopService, Searcher searcher, CategoryService categoryService)
@GET @Produces(value="application/vnd.epages.v1+json, application/json") public javax.ws.rs.core.Response getSitemap()
@GET @Path(value="products") @Produces(value="application/vnd.epages.v1+json, application/json") public javax.ws.rs.core.Response getProducts()
@GET @Path(value="categories") @Produces(value="application/vnd.epages.v1+json, application/json") public javax.ws.rs.core.Response getCategories()