Sha256: 81af289945bf18bd2d803e8ce9c211d99de4f15b83731edc46db3435c4229b71

Contents?: true

Size: 910 Bytes

Versions: 17

Compression:

Stored size: 910 Bytes

Contents

module OpenStax
  module Accounts
    module Api
      module V1
        class GroupUserRepresenter < Roar::Decorator

          # This representer is used to communicate with Accounts
          # and so must allow read/write on all properties
          # Do not use it in create/update APIs!

          include Roar::JSON

          property :group_id,
                   type: Integer,
                   schema_info: {
                     required: true,
                     description: "The associated group's unique ID number"
                   }

          nested :user do
            property :user_id,
                     as: :id,
                     type: Integer,
                     schema_info: {
                       required: true,
                       description: "The associated user's unique ID number"
                     }
          end

        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
openstax_accounts-8.1.1 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-8.1.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-8.0.1 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-8.0.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.13.1 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.13.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.12.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.11.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.10.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.9.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.8.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.7.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.6.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.5.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.4.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.3.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb
openstax_accounts-7.2.0 app/representers/openstax/accounts/api/v1/group_user_representer.rb