1description: >
2    Implement to provide pass-through mechanism to the On Chip Controller (OCC).
3methods:
4    - name: Send
5      description: >
6          Pass through a command to the OCC.
7      parameters:
8        - name: command
9          # TODO via https://github.com/openbmc/openbmc/issues/1160. This should
10          # change to array[byte]. As of now, the REST server maps any numeric
11          # data to int32.
12          type: array[int32]
13          description: >
14              An array of integers representing the command and payload. This
15              should still be bytes worth of data (as though using array[byte]),
16              so each entry in the array should pack as many bytes as possible.
17      returns:
18        - name: response
19          # TODO via https://github.com/openbmc/openbmc/issues/1160. This should
20          # change to array[byte]. As of now, the REST server maps any numeric
21          # data to int32.
22          type: array[int32]
23          description: >
24              An array of integers representing the response. This
25              should still be bytes worth of data (as though using array[byte]),
26              so each entry in the array should pack as many bytes as possible.
27