Sha256: 62223b45c85d4dc735d5310710749cf99420bf26ea2af5ba21e860e45853d3ba

Contents?: true

Size: 184 Bytes

Versions: 3

Compression:

Stored size: 184 Bytes

Contents

class UsersApi < Grape::API
  resource :users do
    desc 'all users'
    get do
      [User.new]
    end

    desc 'specified user'
    get '/:id' do
      User.new
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grape-active_model_serializers-1.5.2 spec/support/api/users_api.rb
grape-active_model_serializers-1.5.1 spec/support/api/users_api.rb
grape-active_model_serializers-1.5.0 spec/support/api/users_api.rb