Sha256: 8cf555b0d6806915390fbd8122eca7b673b1e2ff887b8579cf5f5954adfc326b

Contents?: true

Size: 689 Bytes

Versions: 16

Compression:

Stored size: 689 Bytes

Contents

# Integration with Grape

[Grape](https://github.com/ruby-grape/grape) is an opinionated micro-framework for creating REST-like APIs in ruby.

ActiveModelSerializers currently supports Grape >= 0.13, < 1.0

To add [Grape](https://github.com/ruby-grape/grape) support, enable the formatter and helper functions by including `Grape::ActiveModelSerializers` in your base endpoint. For example:

```ruby
module Example
  class Dummy < Grape::API
    require 'grape/active_model_serializers'
    include Grape::ActiveModelSerializers
    mount Example::V1::Base
  end
end
```

Aside from this, [configuration](../general/configuration_options.md) of ActiveModelSerializers is exactly the same.

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
active_model_serializers_custom-0.10.90 docs/integrations/grape.md
active_model_serializers-0.10.9 docs/integrations/grape.md
active_model_serializers-0.10.8 docs/integrations/grape.md
active_model_serializers-0.10.7 docs/integrations/grape.md
active_model_serializers-0.10.6 docs/integrations/grape.md
active_model_serializers-0.10.5 docs/integrations/grape.md
active_model_serializers-0.10.4 docs/integrations/grape.md
agi_active_model_serializers-0.10.9 docs/integrations/grape.md
agi_active_model_serializers-0.10.8 docs/integrations/grape.md
agi_active_model_serializers-0.10.7 docs/integrations/grape.md
active_model_serializers-0.10.3 docs/integrations/grape.md
active_model_serializers-0.10.2 docs/integrations/grape.md
active_model_serializers-0.10.1 docs/integrations/grape.md
active_model_serializers-0.10.0 docs/integrations/grape.md
active_model_serializers-0.10.0.rc5 docs/integrations/grape.md
active_model_serializers-0.10.0.rc4 docs/integrations/grape.md