Note that there are some explanatory texts on larger screens.

plurals
  1. POConceptualizing RESTful API endpoints as views in the MVC design pattern
    primarykey
    data
    text
    <p>As I am trying to describe a system I built in a research paper, I came across the following notational problem when trying to represent the complexity of the system I created:</p> <ul> <li>Assume I engineer <em>service A</em>, communicating with the world solely through its RESTful endpoints. Then, I engineer <em>service B</em>, that uses <em>service A</em> as its backbone and represents its data to the external world.</li> <li>Assume that <em>service A</em> has its own models and data controllers. Should then the RESTful endpoints be conceptualized as views in the MVC pattern?</li> <li>Assume that <em>service B</em> has its own set of proxy models that map more or less directly models of <em>service A</em>. It provides a set of GUI views to the users, with a completely separate set of controllers. Where does service A come in the MVC? Should it be represented as an encapsulated model?</li> </ul> <p>Real world example (not related to the problem I am working on) would be:</p> <ul> <li>del.icio.us and pinboard.in provide roughly akin set of APIs, and thus can be swapped as a <em>service A</em> for service clients (for the purposes of question assume they are both built upon MVC pattern, but may have completely different sets of models and controllers)</li> <li>Delibar is an iOS app, and thus follows the MVC schema and matches requirements for <em>service B</em>; assume Delibar models its data after the data models of <em>service A</em> as represented in the API endpoints.</li> </ul> <p>Are thus pinboard.in and del.icio.us the model for Delibar? Are RESTful endpoints the views? And are thus the view sets for pinboard.in and del.icio.us the same?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload