rest: support instance CRUD