app/representers/openstax/accounts/api/v1/user_representer.rb in openstax_accounts-0.3.0 vs app/representers/openstax/accounts/api/v1/user_representer.rb in openstax_accounts-1.0.0
- old
+ new
@@ -3,11 +3,12 @@
module Api
module V1
class UserRepresenter < Roar::Decorator
include Roar::Representer::JSON
- property :id,
+ property :openstax_uid,
+ as: :id,
type: Integer
property :username,
type: String
@@ -20,14 +21,9 @@
property :full_name,
type: String
property :title,
type: String
-
-# TODO: Not yet implemented in this gem
-# collection :contact_infos,
-# class: OpenStax::Accounts::ContactInfo,
-# decorator: ContactInfoRepresenter
end
end
end
end