2024: Domino Containers - The Next Step. News from the Domino Container commu...
Web Services, for DevDays Belfast
1. Web Services
Chris McClelland
DevDays, Belfast April 2009
chris@ecliptic-design.com
2. About
Specialising in Mobile Strategy, Development,
Design and Usability.
New and rapidly developing company based in
Belfast, presently 4 people, but more to come!
Established Jan 2009.
10. REST
REpresentational State Transfer
stateless
just HTTP + URIs
HTTP verbs:
GET: Retrieves a resource
POST: Sends data to create a resource
PUT: Sends data to update a resource
DELETE: Destroys a resource
13. methods URI
POST /user/create
GET /user/show/1
NOT RESTful
POST /user/update/1
POST/GET /user/delete/1
POST /user
GET /user/1
RESTful
PUT /user/1
DELETE /user/1
18. REST Authentication
done via HTTPS
to avoid giving the application / developer your
username and password:
OAuth
“An open protocol to allow secure API
authorisation in a simple and standard method
from desktop and web applications.”
22. REST - benefits
Simple
Popular, very Web 2.0
Better performance & scalability
Can be cached
Allows diverse formats e.g. JSON
Built into many web frameworks
Easier in Objective-C