@Path(value="shops/{shopId}/shipping-methods")
@RolesAllowed(value={"sf","admin"})
public final class ShippingMethodsResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ShippingMethodService |
methodService |
private ShopRequestContextService |
shopService |
Constructor and Description |
---|
ShippingMethodsResource(ShippingMethodService methodService,
ShopRequestContextService shopService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
get(java.lang.String shopId,
java.lang.String id,
java.util.Locale locale)
Returns a shipping-method of a shop.
|
javax.ws.rs.core.Response |
getAll(java.lang.String shopId,
java.util.Locale locale)
Returns all shipping-methods of a shop.
|
private final ShippingMethodService methodService
private final ShopRequestContextService shopService
@Inject public ShippingMethodsResource(ShippingMethodService methodService, ShopRequestContextService shopService)
@GET @Produces(value="application/vnd.epages.v1+json") public javax.ws.rs.core.Response getAll(@PathParam(value="shopId") java.lang.String shopId, @QueryParam(value="locale") java.util.Locale locale)
shopId
- The id of the shop.locale
- The ISO 639-1 for language code and ISO 3166-1 for country code. (Example: de_DE).@GET @Path(value="{id}") @Produces(value="application/vnd.epages.v1+json") public javax.ws.rs.core.Response get(@PathParam(value="shopId") java.lang.String shopId, @Encoded@PathParam(value="id") java.lang.String id, @QueryParam(value="locale") java.util.Locale locale)
shopId
- The id of the shop.id
- The id of the shipping-method.locale
- The ISO 639-1 for language code and ISO 3166-1 for country code. (Example: de_DE).