deleteProductById abstract method
- @DELETE("${Api.addToCart}/{cartId}/products/{productId}")
Future<CartModel>
deleteProductById(
{ - @Path("cartId") required String cartId,
- @Path("productId") required String productId,
- @Header("X-User-Id") String xUserId = "",
- @Header("Content-Type") String type = "application/json",
- @Header("X-Roles") String xRoles = "",
})
Implementation
@DELETE("${Api.addToCart}/{cartId}/products/{productId}")
Future<CartModel> deleteProductById(
{@Path("cartId") required String cartId,
@Path("productId") required String productId,
@Header("X-User-Id") String xUserId = "",
@Header("Content-Type") String type = "application/json",
@Header("X-Roles") String xRoles = ""});