HTTP API
Most interactions with Faasm can be performed through the CLI,
which itself uses the faasmctl
API.
You should never need to interact with the underlying HTTP API directly.
If you still need to do so for debugging or hacking purposes, we recommend
checking the implementation in faasmctl
.
Note that the API currently has no authentication.
Upload WASM
The upload server is used to upload WASM functions to a running Faasm cluster.
Each function is identified by a user/function
pair. Once uploaded, functions
can be invoked by passing the user
and the function
.
faasmctl upload.wasm <user> <function> <path_to_wasm_file>
Invoke WASM functions
In order to invoke a WASM function (previously uploaded with user/func
) you
may run:
faasmctl invoke <user> <func>