Sha256: b04b05a713ee7e864baa1a23143a1c291b4cb42d17d2113552a64774bd71f1b8

Contents?: true

Size: 222 Bytes

Versions: 3

Compression:

Stored size: 222 Bytes

Contents

module V4
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

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