A generic ORM framework for RESTful APIs