A few times ago there was a discussion about exhibiting models in google group. It was a pretty picky discussion because the audience was completely divided into two groups:
- those who really like this feature and it will be absolutely necessary.
- those who say that this is a really bad (even dangerous) way to expose your model directly at the presentation level, because it violates the MVC design and directly reveals your business data with potential violations of data security or integrity, etc. .
I'm not in a group, and I'm just considering the issue objectively ...
If you look at this Django API, I think this is not a problem if you can control how your model is exposed and what exactly is revealed. But I donโt know how to do it out of the box on Play! ... I donโt know if the guy who started the discussion, ever finished his module ... Anyway, the CRUD module is already doing something since it analyzes your model fields to open the CRUD interface ... so exposing it as REST would be just a matter of IMHO's presentation (and some work).
source share