add rest api for collectors