Professional Documents
Culture Documents
Introduction
An API defines the way in which computer systems interact.
Introductions to APIs 1
them
Resource Orientation
An act calling predictWeather(postalCode=574226) and
receiving response in return is RPC (some actions will be
performed)
1. Create<Resource>()
2. Get<Resource>()
3. LIst<Resource>()
4. Delete<Resource>()
5. Update<Resource>()
Introductions to APIs 2
Method Resource Resource Methods
Simple:
Predictable:
Case:
dev 1 writes TranslateText() - accepts “text” [Text]
Introductions to APIs 3
APIs that rely on repeated, predictable patterns (Eg:
naming fields consistently.) are easier and faster to
do learn and therefore, better.
Summary
Interfaces are contracts that define how two systems
should interact with one
another.
Introductions to APIs 4