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
20. twitter
200 OK Success!
304 Not Modified
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
406 Not Acceptable
410 Gone
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
26. Where to put your metadata
In your HTTP Headers?
As request params and response fields?
Maybe Both? It usually pays not to be
too strict and just make your users' lives
easier
33. Don't expose your implementations details
Resources are not database tables
34. 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
35. I shouldn't be able
to guess your
programming language
by looking at your API
56. Does my API need a real-time
or push mechanism
for updates?
Do I need to set usage quotas?
57. There are not good or bad
answers. Each API has
different needs.
The only wrong answer is
copying and pasting from
your last project and
pretend the work is done.