add: REST API for entities