GrapeでAPIを構築時のメモ ref: http://qiita.com/taizawa/items/a5cce420298e92b046aa