In my Spring BOOT application, my API currently provides a complete description of an object via a JSONObject. One view on the front end is meant to only provide an abbreviated description of the object, while a second view provides a complete description of the object. Where should the abbreviation process take place? That is, should I pass a request for an abbreviated object description to the Controller, which then passes the abbreviated object to the next View, or should I just request the full object from the Controller every time, and build the View to only use part of the available information?
Aucun commentaire:
Enregistrer un commentaire