16. EFFECTIVE IMMEDIATELY!! NO MORE TYPEWRITERS
ARE TO BE PURCHASED, LEASED, etc., etc.
Apple is an innovative company. We must believe
and lead in all areas. If word processing is so neat,
then let's all use it!
Mike Scott, Apple President, 1980
19. twitter
200 OK Success!
304 Not Modified
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
406 Not Acceptable
420 Enhance Your Calm
500 Internal Server Error
502 Bad Gateway
503 Service Unavailable
Useful Status
429 Too many requests
204 No Content
teowaki
200 OK Success!
201 Created
202 Accepted
301 Moved Permanently
304 Not Modified
401 Unauthorized
403 Forbidden
404 Not Found
406 Not Acceptable
422 Unprocessable Entity
406 Not Acceptable
500 Internal Server Error
28. Easier to understand
Change the internals
without breaking the
contract
Resources based on
business objects are
more resistant to
versioning
More opacity means
more security
30. REST Highlights you should know
about but not necessarily implement
client-server,stateless,layered,cacheable
Resources
Resource Identifiers
Resource metadata
Uniform interface
operations
Representations
Representation metadata
HATEOAS (Hypermedia)
Optionally: code on demand
39. Where to put your metadata
In your HTTP Headers?
As request params and response fields?
Both?
Don't worry too much. Just choose one and
stick to it
40.
41.
42. Don't just implement. Think
Should the API allow asynchronous creation, update
and deletion? => return-async
Should it return the created/deleted/updated object or
just a status code? =>return-representation
Should it ignore extra params transparently or should
it warn you? => api_strict_mode
Should it allow for bulk updates/deletions on
collections? => PATCH /user/links
Think of your own questions.
There are not good or bad answers