http://qiita.com/arakaji/items/39818b207f9c1c3c4058
詰まったところ
最後の
class Api::V1::ProductsController < Api::V1::ApiController before_action :doorkeeper_authorize! # Require access token for all actions # your actions end
で、Api::V1::ProductsControllerというコントローラの作り方がわからなかった。
クォーテーションを入れる必要がある。
http://stackoverflow.com/questions/23046024/how-to-generate-a-controller-with-a-namespace-that-has-2-levels
rails g controller 'api/v1/products'