Sha256: 84784e7b63cc61837cd2c6ec98b357bb3caabc63c89099532ff1b64df8bf916c
Contents?: true
Size: 623 Bytes
Versions: 6
Compression:
Stored size: 623 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 '/i_dont_exist_anymore', { :hello => 'world' } get '/users' post '/users', { :user => { :name => 'Fred', :comment => { :title => [1, 2, 3] } } } get '/users/:id', { :id => 1 } put '/users/:id', { :id => 1, :user => { :name => 'Awesome' } } delete '/users/:id', { :id => 1 } end
Version data entries
6 entries across 6 versions & 1 rubygems