HandlerImpl

class HandlerImpl(mongoInfo: MongoInfo) : Handler

Constructors

Link copied to clipboard
constructor(mongoInfo: MongoInfo)

Functions

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

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

Link copied to clipboard
open suspend override 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
open suspend override 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
open suspend override fun restock(context: RoutingContext)

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

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

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