Project

General

Profile

« Previous | Next » 

Revision ba69b49b

Added by Martin Bacovsky almost 12 years ago

  • ID ba69b49bedf7df0e00bb434852e21e62e0630c6e

api v1 - Users controller and tests

- split api routes to separate routes file
- better detection of permission failure in model
- fix ApiConstraints
- catch bad routes in api and return json
- render home#index links from restapi
- fixed resource params recognition

View differences:

config/routes/api/v1.rb
scope :module => :v1, :constraints => ApiConstraints.new(:version => 1, :default => true) do
resources :bookmarks, :except => [:new, :edit]
resources :architectures, :except => [:new, :edit]
resources :users, :except => [:new, :edit]
resources :operatingsystems, :except => [:new, :edit] do
member do
get 'bootfiles'

Also available in: Unified diff