Working out my ideas on Rails API design