Sha256: 07780c70e29746b2eff45abfc6e2a032eecd338c6a9b0ccedaf3959f2e140b7c

Contents?: true

Size: 475 Bytes

Versions: 55

Compression:

Stored size: 475 Bytes

Contents

# *Flexirest:* Required parameters

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

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

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


-----

[< Root elements](root-elements.md) | [Updating only changed/dirty attributes >](updating-only-changed-dirty-attributes.md)

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
flexirest-1.12.4 docs/required-parameters.md
flexirest-1.12.3 docs/required-parameters.md
flexirest-1.12.2 docs/required-parameters.md
flexirest-1.12.1 docs/required-parameters.md
flexirest-1.12.0 docs/required-parameters.md
flexirest-1.11.3 docs/required-parameters.md
flexirest-1.11.2 docs/required-parameters.md
flexirest-1.11.1 docs/required-parameters.md
flexirest-1.11.0 docs/required-parameters.md
flexirest-1.10.12 docs/required-parameters.md
flexirest-1.10.11 docs/required-parameters.md
flexirest-1.10.10 docs/required-parameters.md
flexirest-1.10.9 docs/required-parameters.md
flexirest-1.10.8 docs/required-parameters.md
flexirest-1.10.7 docs/required-parameters.md
flexirest-1.10.6 docs/required-parameters.md
flexirest-1.10.5 docs/required-parameters.md
flexirest-1.10.4 docs/required-parameters.md
flexirest-1.10.3 docs/required-parameters.md
flexirest-1.10.2 docs/required-parameters.md