Episode 128: Writing APIs

Published: Dec. 29, 2012, 7:53 p.m.

James Miller explores writing and testing JSON APIs with Sinatra and rack/test. Authenticate, handle errors, set proper HTTP status codes, customize headers with pagination and rate limiting data, and mount it to an existing Rails app.