Rails API for stash