public function rest_api_init()
{
register_rest_route(self::API_NAMESPACE, '/' . self::ENDPOINT_LIST, array('methods' => 'POST', 'callback' => array($this, 'get_events'), 'permission_callback' => array($this, 'check_secret'), 'show_in_index' => false));
register_rest_route(self::API_NAMESPACE, '/' . self::ENDPOINT_RUN, array('methods' => 'PUT', 'callback' => array($this, 'run_event'), 'permission_callback' => array($this, 'check_secret'), 'show_in_index' => false));
}