Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Decouple your mobile services
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Romain
September 25, 2013
Programming
65
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Decouple your mobile services
Creating a tailored RESTful API so your app and services can evolve separately
Romain
September 25, 2013
Transcript
19 slides
Decouple your! mobile API now …don’t be sorry later !
Sept 2013 Romain Prieto
None
BREAKING CHANGE
None
defensive / fallbacks con0nuous checks consumer-‐driver contracts
Display list of products sorted by MagicRank © unless on
sale only best rated
Where does that logic sit? Even if it’s UI related…
will you want to tweak it remotely? à Custom tailored services
Many capabilities
GET /products { id: 1, name: “chair” }, { id:
2, name: “table” } GET /products/1 { price: 30, image: “…” }
POST /cart/items { productId: 1, quantity: 4 } URI changes?
…refactoring Host changes? …micro-services …infrastructure upgrades
GET /products [{ id: 1, name: “chair”, details: “/products/1” }]
DATA
GET /config { cart: “/cart/items” } GET /products/1 { cart:
“/cart/items/1“, … } SERVICES or
SINGLE PROXY
DISCOVERABLE SERVICES
None
http://mark-kirby.co.uk/2013/creating-a-true-rest-api/ http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven http://madhatted.com/2013/3/19/suggested-rest-api-practices http://offers.apigee.com/web-api-design-ebook/ http://kinderman.net/2010/06/23/approaching-pure-rest-learning-to-love-hateoas http://stateless.co/hal_specification.html https://kenai.com/projects/suncloudapis/pages/CloudAPIBackupRequests a few more
URLs
{ "op": "restore-Backup", "progress": 0, "target_uri": "/vms/33333/backups/456", "status_uri": "/statuses?op=restore-Backup&vm=3&b=456" }
SunCloud API (2009)
<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
None
More Decks by Romain
See All by Romain
JavaScript dependency management in a post-Node world
romainprieto
0
160
CSS Workshop - The basics
romainprieto
0
57
Other Decks in Programming
See All in Programming
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
410
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
190
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
210
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
270
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
290
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
100
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
690
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
290
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
370
はじめてのPLATEAU
nokonoko1203
1
660
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
270
Kotlin JVM用に作られたライブラリのKMPを前提とした再設計
jsoizo
0
130
Featured
See All Featured
A Soul's Torment
seathinner
9
3.9k
Git: the NoSQL Database
bkeepers
PRO
433
67k
30 Presentation Tips
portentint
PRO
1
470
Practical Orchestrator
shlominoach
192
12k
Optimizing for Happiness
mojombo
378
71k
Google's AI Overviews - The New Search
badams
0
1.7k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
Facilitating Awesome Meetings
lara
57
7.2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
990
Unsuck your backbone
ammeep
672
58k