CategoryController

@Controller(value = "/restaurant/{restaurantId}/menus/{menuId}/categories")
class CategoryController(menuService: MenuService)

Constructors

Link copied to clipboard
constructor(menuService: MenuService)

Functions

Link copied to clipboard
@Post
suspend fun createCategory(@PathVariable restaurantId: String, @PathVariable menuId: String, @Body request: CreateCategoryRequest): HttpResponse<CreateCategoryResponse>
Link copied to clipboard
@Delete(value = "/{categoryId}")
suspend fun deleteCategory(@PathVariable restaurantId: String, @PathVariable menuId: String, @PathVariable categoryId: String): HttpResponse<DeleteCategoryResponse>
Link copied to clipboard
@Put(value = "/{categoryId}")
suspend fun updateCategory(@PathVariable restaurantId: String, @PathVariable menuId: String, @PathVariable categoryId: String, @Body request: UpdateCategoryRequest): HttpResponse<UpdateCategoryResponse>