Class RecipeRoutes
Namespace: TecnoPack.WebServer.Routes
Assembly: CO0002_Templ_FlowpackHMI_V00_26_M.dll
Provides API endpoints for managing machine recipes, including listing, loading, saving, and deleting recipes.
public class RecipeRoutes
Inheritance
object ← RecipeRoutes
Methods
GetMachineOee(HttpContextBase)
Returns the list of machine recipes in JSON format.
[WebRoute(HttpMethod.GET, "/api/recipes/list")]
public static Task GetMachineOee(HttpContextBase ctx)
Parameters
ctx HttpContextBase
The HTTP context for the incoming request and outgoing response.
Returns
Task
A task representing the asynchronous operation.
RecipeDelete(HttpContextBase)
Deletes the specified recipe by index from the machine.
[WebRouteRequireAuth(10)]
[WebRoute(HttpMethod.DELETE, "/api/recipes/delete")]
public static Task RecipeDelete(HttpContextBase ctx)
Parameters
ctx HttpContextBase
The HTTP context containing the request data (recipe index).
Returns
Task
A task representing the asynchronous operation.
RecipeLoad(HttpContextBase)
Loads the specified recipe by index into the machine.
[WebRouteRequireAuth(10)]
[WebRoute(HttpMethod.POST, "/api/recipes/load")]
public static Task RecipeLoad(HttpContextBase ctx)
Parameters
ctx HttpContextBase
The HTTP context containing the request data (recipe index).
Returns
Task
A task representing the asynchronous operation.
RecipeSave(HttpContextBase)
Saves the specified recipe by index to the machine.
[WebRouteRequireAuth(10)]
[WebRoute(HttpMethod.POST, "/api/recipes/save")]
public static Task RecipeSave(HttpContextBase ctx)
Parameters
ctx HttpContextBase
The HTTP context containing the request data (recipe index).
Returns
Task
A task representing the asynchronous operation.