Skip to content

Command Request Model

Iuga Alexandru edited this page May 16, 2023 · 2 revisions

The Command Request Model contains the following important properties:

verb

  • optional

options

  • a list of name-value pairs.
    • name
      • string
      • not-empty.
    • value
      • string - At this level, the value is always a string. It will be parsed later, to the appropriate type, when the mapping to an actual command instance is performed by the Command Router.
      • may be empty.
  • optional - The list of options may be empty. A command may have no options.

operands

  • list of strings
    • These are values without names.
  • an index of the operand, as it appears in the text command, is also provided.

Clone this wiki locally