Re:FastAPI – Easily create robust, standardized API endpoint...
by cheald on Tuesday July 29, 2014 @01:32AM
(#8100838)
Well, it certainly meets those goals, but it does so by putting view logic into the model layer.
You might take a look at the Presenter pattern; Draper is an excellent implementation of it, which permits for this kind of "model-attached" view behavior, while maintaining proper MVC separations.
I would argue that it merely allows for more automated (albeit implicit) generation of a View.
The goal here was to simplify the API endpoint creation process for the vast majority of use cases, and provide a standard output that could be easily recognized and consistently managed by any external software.