OpenSlides/docs/interfaces/action-service.txt
2020-01-21 18:05:47 +01:00

20 lines
402 B
Plaintext

# Action Service Interface
Exception ActionException(message: string);
/**
* Executes multiple actions in the conext of the user given by the user_id.
* All actions are successful if no exception is thrown, else no action was
* processed.
*
*
* @throws ActionException
*/
handle_request (payload: Action[], user_id: number): void
interface Action {
action: string;
data: object[];
}