Migrating our API to be more UI Centric

Photo by Jason Goodman on Unsplash
Example of a business centric mode
An example of what a business centric model could look like. Note that it requires joining data across many objects. It also requires the clients to know that, for example, the subtitle should be a combination of the request’s location, category name, and price.
Example of a UI centric model
An example of a UI centric model. Note that while the first line is clearly the customer’s name, the API field just calls it “title.” That way if we later decide to change what we display, it will be easy to do so on the server without client-side changes.

Issues with Business Centric Models

An example of our messenger
An example of what our messenger looks like

Issues with UI Centric Models



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store