adapt the rest api consumer to flask restless objects structure