Skip to main content

invoke_function_handler

Function invoke_function_handler 

Source
pub async fn invoke_function_handler<A>(
    __arg0: Path<String>,
    __arg1: State<AppState<A>>,
    __arg2: Json<InvokeRequest>,
) -> impl IntoResponse
where A: DatabaseAdapter + Clone + Send + Sync + 'static,
Expand description

POST /admin/v1/functions/{name}/invoke — invoke a function.

§Errors

Returns 401 without valid admin credentials (enforced by middleware). Returns 404 if the function does not exist.