From REST API to ORM abstraction