deleteProductById abstract method

  1. @DELETE("${Api.addToCart}/{cartId}/products/{productId}")
Future<CartModel> deleteProductById({
  1. @Path("cartId") required String cartId,
  2. @Path("productId") required String productId,
  3. @Header("X-User-Id") String xUserId = "",
  4. @Header("Content-Type") String type = "application/json",
  5. @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 = ""});