Interface ProductIngredientService
-
public interface ProductIngredientService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description retrofit2.Call<java.util.Collection<ProductIngredient>>createProductIngredients(java.util.Collection<ProductIngredient> productIngredients)retrofit2.Call<ProductIngredient>deleteProductIngredient(java.lang.Long productIngredientId)retrofit2.Call<ProductIngredient>getProductIngredient(java.lang.Long productIngredientId)retrofit2.Call<ResultPage<ProductIngredient>>getProductIngredients(int page, int limit, java.lang.String filter, java.lang.String sort)retrofit2.Call<ProductIngredient>patchProductIngredient(java.lang.Long productIngredientId, ProductIngredient productIngredient)retrofit2.Call<ProductIngredient>updateProductIngredient(java.lang.Long productIngredientId, ProductIngredient productIngredient)retrofit2.Call<java.util.Collection<ProductIngredient>>updateProductIngredients(java.util.Collection<ProductIngredient> productIngredients)
-
-
-
Method Detail
-
createProductIngredients
@POST(" ") retrofit2.Call<java.util.Collection<ProductIngredient>> createProductIngredients(@Body java.util.Collection<ProductIngredient> productIngredients)- Parameters:
productIngredients- - productIngredients to be created- Returns:
- ProductIngredients
-
updateProductIngredients
@PUT(" ") retrofit2.Call<java.util.Collection<ProductIngredient>> updateProductIngredients(@Body java.util.Collection<ProductIngredient> productIngredients)- Parameters:
productIngredients- - productIngredients to be created or updated- Returns:
- ProductIngredients
-
updateProductIngredient
@PUT("{productIngredientId}") retrofit2.Call<ProductIngredient> updateProductIngredient(@Path("productIngredientId") java.lang.Long productIngredientId, @Body ProductIngredient productIngredient)- Parameters:
productIngredientId- - id of productIngredient to be updatedproductIngredient- - productIngredient to be updated- Returns:
- ProductIngredient
-
patchProductIngredient
@PATCH("{productIngredientId}") retrofit2.Call<ProductIngredient> patchProductIngredient(@Path("productIngredientId") java.lang.Long productIngredientId, @Body ProductIngredient productIngredient)- Parameters:
productIngredientId- - id of productIngredient to be patchedproductIngredient- - productIngredient to be patched- Returns:
- ProductIngredient
-
deleteProductIngredient
@DELETE("{productIngredientId}") retrofit2.Call<ProductIngredient> deleteProductIngredient(@Path("productIngredientId") java.lang.Long productIngredientId)- Parameters:
productIngredientId- - productIngredient id- Returns:
- ProductIngredient
-
getProductIngredient
@GET("{productIngredientId}") retrofit2.Call<ProductIngredient> getProductIngredient(@Path("productIngredientId") java.lang.Long productIngredientId)- Parameters:
productIngredientId- - productIngredientId id- Returns:
- ProductIngredient
-
getProductIngredients
@GET(" ") retrofit2.Call<ResultPage<ProductIngredient>> getProductIngredients(@Query("page") int page, @Query("limit") int limit, @Query("filter") java.lang.String filter, @Query("sort") java.lang.String sort)- Parameters:
page- - pagination parameter, default = 1limit- - pagination parameter, default = 100, max = 100filter- - query filtersort- - Description: Sort parameters in format: column_name1,column_name2 //means asc -column_name1,-column_name2 //means desc- Returns:
- ProductIngredients
-
-