Ask HN: API Design?

11 points by thomasswift ↗ HN
I am interested in adding an official API to my site. Any links/tips/tricks/books? I'd rather take the time to make it close to right the first time, as opposing to break a bunch of things down the line. API Design is not my strong suit.

thanks

6 comments

[ 5.7 ms ] story [ 30.1 ms ] thread
Read the O'Reilly RESTful Web Services book. It's a great explanation of why REST is good, and has a bunch of design patterns for the major pit falls.

You could also look at some of the tricks we use at Yahoo. One thing I think is important is the way we handle JSON (http://developer.yahoo.com/common/json.html).