Handler

interface Handler

Interface exposing handler methods and set contexts status code

Inheritors

Functions

Link copied to clipboard
abstract suspend fun createIngredient(context: RoutingContext)

Uri: /warehouse/ Http method: POST Service: @see WarehouseService.createIngredient

Link copied to clipboard
abstract suspend fun getAllAvailableIngredients(context: RoutingContext)

Uri: /warehouse/available Http method: GET Response body: list of available ingredients in the warehouse Service: @see WarehouseService.getAllAvailableIngredients

Link copied to clipboard
abstract suspend fun getAllIngredients(context: RoutingContext)

Uri: /warehouse/ Http method: GET Service: @see WarehouseService.getAllIngredients Response body: list of ingredients in the warehouse

Link copied to clipboard
abstract suspend fun restock(context: RoutingContext)

Uri: /warehouse/:ingredient Http method: PUT Service: @see WarehouseService.restock

Link copied to clipboard
abstract suspend fun updateConsumedIngredientsQuantity(context: RoutingContext)

Uri: /warehouse/ Http method: PUT Service: @see WarehouseService.updateConsumedIngredientsQuantity