ORM like mapping for REST API for Angular