How to Build an API With Ruby on Rails
-
rails new my-dope-api --api --database=postgresql
-
rails g controller api/v1/products index show --no-helper --no-assets --no-template-engine --no-test-framework
-
rails g model product name:string brand:string price:string description:string --no-helper --no-assets --no-template-engine --no-test-framework
-
rails db:create
-
rails db:migrate
-
rails db:seed
Please contact me stackdev37@gmail.com if you are looking for ruby expert.