Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Decouple your mobile services

Avatar for Romain Romain
September 25, 2013

Decouple your mobile services

Creating a tailored RESTful API so your app and services can evolve separately

Avatar for Romain

Romain

September 25, 2013

More Decks by Romain

Other Decks in Programming

Transcript

  1. Where does that logic sit? Even if it’s UI related…

    will you want to tweak it remotely? à Custom tailored services
  2. GET /products { id: 1, name: “chair” }, { id:

    2, name: “table” } GET /products/1 { price: 30, image: “…” }
  3. POST /cart/items { productId: 1, quantity: 4 } URI changes?

    …refactoring Host changes? …micro-services …infrastructure upgrades
  4. <link href="http://api-public.netflix.com/catalog/ titles/series/70023522/cast" rel="http:// schemas.netflix.com/catalog/people" title="cast"> <cast> <link href="http://api-public.netflix.com/catalog/ people/30011713"

    rel="http://schemas.netflix.com/ catalog/person" title="Steve Carell” /> <link href="http://api-public.netflix.com/catalog/ people/30014922" rel="http://schemas.netflix.com/ catalog/person" title="John Krasinski” /> Netflix