fix: Fix typo in func name createCategory -> updateCategory
This commit is contained in:
parent
6d6e1945bb
commit
c900c7093f
|
@ -24,7 +24,7 @@ interface CategoryService {
|
||||||
suspend fun createCategory(@Body categoryData: CategoryRequest): CategoryResponse
|
suspend fun createCategory(@Body categoryData: CategoryRequest): CategoryResponse
|
||||||
|
|
||||||
@PATCH("/categories/{category_id}")
|
@PATCH("/categories/{category_id}")
|
||||||
suspend fun createCategory(@Path("category_id") categoryId: String, @Body categoryData: PartialCategoryRequest): CategoryResponse
|
suspend fun updateCategory(@Path("category_id") categoryId: String, @Body categoryData: PartialCategoryRequest): CategoryResponse
|
||||||
|
|
||||||
@DELETE("/categories/{category_id}")
|
@DELETE("/categories/{category_id}")
|
||||||
suspend fun deleteCategory(@Path("category_id") categoryId: String): Unit
|
suspend fun deleteCategory(@Path("category_id") categoryId: String): Unit
|
||||||
|
|
Loading…
Reference in a new issue