Interface CategoryService
-
public interface CategoryService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description retrofit2.Call<java.util.Collection<Category>>createCategories(java.util.Collection<Category> categories)retrofit2.Call<Category>deleteCategory(java.lang.Long categoryId)retrofit2.Call<ResultPage<Category>>getCategories(int page, int limit, java.lang.String filter, java.lang.String sort)retrofit2.Call<Category>getCategory(java.lang.Long categoryId)retrofit2.Call<Category>patchCategory(java.lang.Long categoryId, Category category)retrofit2.Call<java.util.Collection<Category>>updateCategories(java.util.Collection<Category> categories)retrofit2.Call<Category>updateCategory(java.lang.Long categoryId, Category category)
-
-
-
Method Detail
-
createCategories
@POST(" ") retrofit2.Call<java.util.Collection<Category>> createCategories(@Body java.util.Collection<Category> categories)- Parameters:
categories- - categories to be created- Returns:
- Categories
-
updateCategories
@PUT(" ") retrofit2.Call<java.util.Collection<Category>> updateCategories(@Body java.util.Collection<Category> categories)- Parameters:
categories- - categories to be created or updated- Returns:
- Categories
-
updateCategory
@PUT("{categoryId}") retrofit2.Call<Category> updateCategory(@Path("categoryId") java.lang.Long categoryId, @Body Category category)- Parameters:
categoryId- - id of category to be updatedcategory- - category to be updated- Returns:
- Category
-
patchCategory
@PATCH("{categoryId}") retrofit2.Call<Category> patchCategory(@Path("categoryId") java.lang.Long categoryId, @Body Category category)- Parameters:
categoryId- - id of category to be patchedcategory- - category to be patched- Returns:
- Category
-
deleteCategory
@DELETE("{categoryId}") retrofit2.Call<Category> deleteCategory(@Path("categoryId") java.lang.Long categoryId)- Parameters:
categoryId- - category id- Returns:
- Category
-
getCategory
@GET("{categoryId}") retrofit2.Call<Category> getCategory(@Path("categoryId") java.lang.Long categoryId)- Parameters:
categoryId- - categoryId id- Returns:
- Category
-
getCategories
@GET(" ") retrofit2.Call<ResultPage<Category>> getCategories(@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:
- Categories
-
-