Sha256: 3532019716472ee0d5c2a8176ee78e38fd45cb4f7f27472ca179924ef7b93139
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
Rails.application.routes.draw do mount ApiTaster::Engine => "/api_taster" get 'home' => 'application#home', :as => :home resources :users, :except => [:new, :edit] do resources :comments, :only => [:new, :edit] end end ApiTaster.routes do get '/users' post '/users', { :user => { :name => 'Fred' } } get '/users/:id', { :id => 1 } put '/users/:id', { :id => 1, :user => { :name => 'Awesome' } } delete '/users/:id', { :id => 1 } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api_taster-0.2.0 | spec/dummy/config/routes.rb |
api_taster-0.1.0 | spec/dummy/config/routes.rb |