MenuItemController

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

Constructors

Link copied to clipboard
constructor(menuService: MenuService)

Functions

Link copied to clipboard
@Post
suspend fun createMenuItem(@PathVariable restaurantId: String, @PathVariable menuId: String, @PathVariable categoryId: String, @Body request: CreateMenuItemRequest): HttpResponse<CreateMenuItemResponse>
Link copied to clipboard
@Delete(value = "/{itemId}")
suspend fun removeMenuItem(@PathVariable restaurantId: String, @PathVariable menuId: String, @PathVariable categoryId: String, @PathVariable itemId: String): HttpResponse<DeleteMenuItemResponse>
Link copied to clipboard
@Put(value = "/{itemId}")
suspend fun updateMenuItem(@PathVariable restaurantId: String, @PathVariable menuId: String, @PathVariable categoryId: String, @PathVariable itemId: String, @Body request: UpdateMenuItemRequest): HttpResponse<UpdateMenuItemResponse>