Mostly worked out model -> rest framework details