Invoke commands
Last updated
Last updated
Process a command.
URL: /commands
Method: POST
Code : 200 OK
Payload: command
defined as:
It can also contain more properties given by the parameters defined by the command ()
Taking the definition given in , the payload the backend will receive should be like this:
The Pharo implementation of the API, could be have some sort of command dispatcher in place based on the command
property. For example:
and the particular handler for imageCleanUp
:
Note: this is just an example, implemented in Pharo 12, and may be not a good implementation as #cleanUp: has undesired effects on native UI (some progress bar).
Again the backend could handle this command by doing something like:
Considering the definition given at , the command sent for processing should look like this: