Designing an API well shouldn't be difficult. In this talk, I'll take a look at some of the things that you should consider in order to play well with others.
Who am I? • Coder and Release Manager at GroupSpaces • Twitter: @dmi • Github: dingram • Also occasionally found at London Hackspace • Feedback: http://joind.in/6137
Accept The MIME types the client will accept. No need to use file extensions to decide what content type to serve! Accept-Language The languages the client will accept. No need to ask clients or (worse) just assume English responses.
Timestamps • ISO-8601 2012-02-25T14:00:00Z Human-readable(ish), but needs parsing • UTC seconds since epoch: 1330178400 Easily machine-usable Should your API really be human-readable? It’s better to help your consumers.