summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-02-09 08:31:43 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-02-09 08:31:43 +0000
commit3d20670058eba11b470bfd318a4842197b3bb122 (patch)
tree686b3485575f82fd5d1835ab64531dcf293571c5 /lib
parent62870a0e50ddbcdb0a0536e5523c17886c8f7022 (diff)
parentdf974814fbbbf8f088f6bb480344cfdfcec6c1b2 (diff)
downloadgitlab-ce-3d20670058eba11b470bfd318a4842197b3bb122.tar.gz
Merge branch 'dz-nested-groups-api' into 'master'
Nested groups API See merge request !9034
Diffstat (limited to 'lib')
-rw-r--r--lib/api/entities.rb1
-rw-r--r--lib/api/groups.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 5d7b8e021bb..3a5819d1bab 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -138,6 +138,7 @@ module API
expose :web_url
expose :request_access_enabled
expose :full_name, :full_path
+ expose :parent_id
expose :statistics, if: :statistics do
with_options format_with: -> (value) { value.to_i } do
diff --git a/lib/api/groups.rb b/lib/api/groups.rb
index 50dadd94b04..5c132bdd6f9 100644
--- a/lib/api/groups.rb
+++ b/lib/api/groups.rb
@@ -73,6 +73,7 @@ module API
params do
requires :name, type: String, desc: 'The name of the group'
requires :path, type: String, desc: 'The path of the group'
+ optional :parent_id, type: Integer, desc: 'The parent group id for creating nested group'
use :optional_params
end
post do