- api/v1/examples_controller.rb を作成
- config/routes.rbにresourcesを追加(ルーティングを追加する)
- index アクションなどを作成
- http://localhost:3000/api/v1/examples?parameter=1
##チェンジディレクトリ
cd controller/api/v1
##ファイル作成
touch example_controller.rb
自動で作成する場合(scssファイルとhelperファイルが不要な場合はオプションをつける)
rails g controller api/v1/examples index create --no-assets --no-helper