added: rest endpoint (not tested)