BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bbd8d0d1
Commit
bbd8d0d1
authored
Jan 27, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update group api doc with full_name and full_path attributes
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b4bf3cd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
groups.md
doc/api/groups.md
+12
-1
groups_spec.rb
spec/requests/api/groups_spec.rb
+3
-0
No files found.
doc/api/groups.md
View file @
bbd8d0d1
...
...
@@ -25,7 +25,14 @@ GET /groups
"id"
:
1
,
"name"
:
"Foobar Group"
,
"path"
:
"foo-bar"
,
"description"
:
"An interesting group"
"description"
:
"An interesting group"
,
"visibility_level"
:
20
,
"lfs_enabled"
:
true
,
"avatar_url"
:
"http://localhost:3000/uploads/group/avatar/1/foo.jpg"
,
"web_url"
:
"http://localhost:3000/groups/foo-bar"
,
"request_access_enabled"
:
false
,
"full_name"
:
"Foobar Group"
,
"full_path"
:
"foo-bar"
}
]
```
...
...
@@ -149,6 +156,8 @@ Example response:
"avatar_url"
:
null
,
"web_url"
:
"https://gitlab.example.com/groups/twitter"
,
"request_access_enabled"
:
false
,
"full_name"
:
"Foobar Group"
,
"full_path"
:
"foo-bar"
,
"projects"
:
[
{
"id"
:
7
,
...
...
@@ -372,6 +381,8 @@ Example response:
"avatar_url"
:
null
,
"web_url"
:
"http://gitlab.example.com/groups/h5bp"
,
"request_access_enabled"
:
false
,
"full_name"
:
"Foobar Group"
,
"full_path"
:
"foo-bar"
,
"projects"
:
[
{
"id"
:
9
,
...
...
spec/requests/api/groups_spec.rb
View file @
bbd8d0d1
...
...
@@ -176,6 +176,9 @@ describe API::Groups, api: true do
expect
(
json_response
[
'visibility_level'
]).
to
eq
(
group1
.
visibility_level
)
expect
(
json_response
[
'avatar_url'
]).
to
eq
(
group1
.
avatar_url
)
expect
(
json_response
[
'web_url'
]).
to
eq
(
group1
.
web_url
)
expect
(
json_response
[
'request_access_enabled'
]).
to
eq
(
group1
.
request_access_enabled
)
expect
(
json_response
[
'full_name'
]).
to
eq
(
group1
.
full_name
)
expect
(
json_response
[
'full_path'
]).
to
eq
(
group1
.
full_path
)
expect
(
json_response
[
'projects'
]).
to
be_an
Array
expect
(
json_response
[
'projects'
].
length
).
to
eq
(
2
)
expect
(
json_response
[
'shared_projects'
]).
to
be_an
Array
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment