LiquidAI-project / wasmiot-supervisor

Device supervisor to manage deployment of WebAssembly modules. Works together with wasmiot-orchestrator.
MIT License
0 stars 1 forks source link

Add OpenAPI-related execution logic for calling image classifier module #14

Closed trkks closed 1 year ago

trkks commented 1 year ago

The current implementation on run_module_function allows chaining together fibo-calls using HTTP GET with query-string parameter(s) described in the OpenAPI-doc for this fibo-module.

Similar functionality should be added for running the ML-funcs. Using POST with a file-parameter (i.e., the input image to classify) would fit it better, though.

This is part of an application demonstration, where:

  1. Actor requests taking an image and classifying it
  2. Device 1 takes an image and forwards it to Device 2
  3. Device 2 classifies the image and propagates result back to Device 1
  4. Device 1 then responds to Actor with classification result it received

Needed: