An ActiveRecord-style restful API accessor