rest("/cart/").description("Personal Shopping Cart Service")
.produces(MediaType.APPLICATION_JSON_VALUE)
.options("/{cartId}")
.route().id("getCartOptionsRoute").end().endRest()
.options("/checkout/{cartId}")
<BUG>.route().id("checkoutCartOptionsRoute").end().endRest()
.options("/{cartId}/{itemId}/{quantity}")</BUG>
.route().id("cartAddDeleteOptionsRoute").end().endRest()
.post("/checkout/{cartId}").description("Finalize shopping cart and process payment")
.param().name("cartId").type(RestParamType.path).description("The ID of the cart to process").dataType("string").endParam()

rest("/cart/").description("Personal Shopping Cart Service")
.produces(MediaType.APPLICATION_JSON_VALUE)
.options("/{cartId}")
.route().id("getCartOptionsRoute").end().endRest()
.options("/checkout/{cartId}")
.route().id("checkoutCartOptionsRoute").end().endRest()
.options("/{cartId}/{tmpId}")
.route().id("cartSetOptionsRoute").end().endRest()
.options("/{cartId}/{itemId}/{quantity}")
.route().id("cartAddDeleteOptionsRoute").end().endRest()
.post("/checkout/{cartId}").description("Finalize shopping cart and process payment")
.param().name("cartId").type(RestParamType.path).description("The ID of the cart to process").dataType("string").endParam()
