Re:FastAPI – Easily create robust, standardized API endpoint...
by cheald on Monday July 28, 2014 @08:08PM
(#8100012)
View models/decorators have served me very well in this case. The view model would take the marble instance, viewing user instance, etc and decide which attributes it should emit as JSON. The result is frequently very clean, very maintainable code.
[ Parent
| on HN ]
There are no comments on this comment yet.