Élie Michel
École normale supérieure
17 November 2014
Program to Program Interactions
Building blocks
UI and API
Web Site
Web Service Web App
Web API
Endpoints
Format: XML, JSON
Token, Key
How to write a Web API?
Service Oriented Architecture
Resources Oriented Architecture
General principles
Not limited to APIs
Hypermedia system architecture
Resources and Relations
Browsing and Interaction
UI and API
Flexibility
Client-Server, Layering
Efficiency
Scalable, Stateless, Cachable
Explorability
Self-description, HATEOAS
Based on HTTP
Resource ⇔ Endpoint
Hypertext links
Resources
Event | Stream | Source |
User | Right | UserRight |
HTTP, JSON
Multiple Authentication
Sources, User Keys
Resource Oriented
Stateless, Data selection, Rate limits
No client-side caching
Guidelines
No obligation
Trade-off
Between different principles
Integration
In current ecosystem