Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 475 Bytes

required-parameters.md

File metadata and controls

17 lines (11 loc) · 475 Bytes

Flexirest: Required parameters

If you want to specify that certain parameters are required for a specific call, you can specify them like:

class Person < Flexirest::Base
  get :all, '/people', :requires => [:active]
end

@people = Person.all # raises Flexirest::MissingParametersException
@people = Person.all(active:false)

< Root elements | Updating only changed/dirty attributes >