3. What is an API?
Application Programming Interface
An API is the interface implemented by
an application which allows us to
communicate with it.
4. What is REST?
REpresentational State Transfer
●
Architectural Style
●
Not a standard, unlike SOAP
●
Modern best practice
●
Developed closely with HTTP 1.1
5. Constraints
●
Client – Server Independance
●
Stateless
●
Cacheable
●
Layered System
●
Code in demand
●
Uniform Interface
14. Embrace HTTP
GET /document
GET /document/1
POST /document
PUT /document/1
DELETE /document/1
Retrieve all documents
Retrieve a specific
document #1
Create a new document
Update an existing
document #1
Delete an existing
document #1