Skip to content

Implement commands #6

Description

@GDYendell

Swap back from config to commands, like the odin data adapter now does: https://github.com/odin-detector/odin-data/blob/eced847000ebd5d8d84a740de4f4007cb30c9374/python/src/odin_data/control/odin_data_controller.py#L183

It will be a bit simpler than that for xspress because there we have to query the FP plugins to see what commands they have. Here we can just statically define them. The API is:

  • GET "command/allowed" -> return a list of command name strings
  • PUT "command/execute" with the value as the string command name -> run that command

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions