diff options
author | Daniel Serodio <Daniel.Serodio@walmart.com> | 2014-12-17 01:03:28 +0300 |
---|---|---|
committer | Daniel Serodio <Daniel.Serodio@walmart.com> | 2015-01-16 21:52:48 +0300 |
commit | 6ac8bb0f7ccd7b1f10909aea62b1d8493fc0574a (patch) | |
tree | d723b59d356859b9287ba2ecb0282aa45a2724b9 /lib/api | |
parent | ada6c6080b2fa0d63003f8b29b5c32195254906d (diff) |
Add description attribute to group API (GET and POST)
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 | ||||
-rw-r--r-- | lib/api/groups.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 2fea151aeb3..ac166ed4fba 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -65,7 +65,7 @@ module API end class Group < Grape::Entity - expose :id, :name, :path, :owner_id + expose :id, :name, :path, :owner_id, :description end class GroupDetail < Group diff --git a/lib/api/groups.rb b/lib/api/groups.rb index bda60b3b7d5..730dfad52c8 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -47,7 +47,7 @@ module API authenticated_as_admin! required_attributes! [:name, :path] - attrs = attributes_for_keys [:name, :path] + attrs = attributes_for_keys [:name, :path, :description] @group = Group.new(attrs) @group.owner = current_user |