@Path(value="shops/{shopId}/public-info")
@RolesAllowed(value={"sf","admin"})
public final class PublicInfoResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PublicInfoService |
publicInfoService |
private ShopRequestContextService |
shopService |
Constructor and Description |
---|
PublicInfoResource(PublicInfoService publicInfoService,
ShopRequestContextService shopService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get(java.lang.String shopId,
java.util.Locale locale) |
javax.ws.rs.core.Response |
post(java.lang.String shopId,
ShopPublicCompleteInfo shopInfo) |
private final PublicInfoService publicInfoService
private final ShopRequestContextService shopService
@Inject public PublicInfoResource(PublicInfoService publicInfoService, ShopRequestContextService shopService)
@GET @Produces(value="application/vnd.epages.v1+json") public javax.ws.rs.core.Response get(@PathParam(value="shopId") java.lang.String shopId, @QueryParam(value="locale") java.util.Locale locale)
@POST @RolesAllowed(value="admin") @Consumes(value="application/json") @Produces(value="application/vnd.epages.complete.v1+json") public javax.ws.rs.core.Response post(@PathParam(value="shopId") java.lang.String shopId, ShopPublicCompleteInfo shopInfo)