MenuController

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

Constructors

Link copied to clipboard
constructor(menuService: MenuService)

Functions

Link copied to clipboard
@Post
suspend fun createMenu(@PathVariable restaurantId: String, @Body request: CreateMenuRequest): HttpResponse<CreateMenuResponse>
Link copied to clipboard
@Delete(value = "/{menuId}")
suspend fun deleteMenu(@PathVariable restaurantId: String, @PathVariable menuId: String): HttpResponse<DeleteMenuResponse>
Link copied to clipboard
@Get(value = "/{menuId}")
suspend fun getMenu(@PathVariable restaurantId: String, @PathVariable menuId: String): HttpResponse<GetMenuResponse>
Link copied to clipboard
@Get
suspend fun getRestaurantMenus(@PathVariable restaurantId: String): HttpResponse<GetRestaurantMenusResponse>
Link copied to clipboard
@Put(value = "/{menuId}")
suspend fun updateMenu(@PathVariable restaurantId: String, @PathVariable menuId: String, @Body request: UpdateMenuRequest): HttpResponse<UpdateMenuResponse>