feat(rest): node endpoints for the rest api