Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
ba9799b4
Commit
ba9799b4
authored
Jan 07, 2016
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ./doc/api
parent
0a21731e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
3 deletions
+42
-3
doc/api/projects.md
doc/api/projects.md
+33
-3
lib/api/projects.rb
lib/api/projects.rb
+9
-0
No files found.
doc/api/projects.md
View file @
ba9799b4
...
...
@@ -76,7 +76,14 @@ Parameters:
"updated_at"
:
"2013-09-30T13: 46: 02Z"
},
"archived"
:
false
,
"avatar_url"
:
"http://example.com/uploads/project/avatar/4/uploads/avatar.png"
"avatar_url"
:
"http://example.com/uploads/project/avatar/4/uploads/avatar.png"
,
"shared_runners_enabled"
:
true
,
"forks_count"
:
0
,
"star_count"
:
0
,
"build_allow_git_fetch"
:
true
,
"build_coverage_regex"
:
null
,
"build_timeout"
:
3600
,
"runners_token"
:
"4f9e77be0eed5ef29548fccda3b371"
},
{
"id"
:
6
,
...
...
@@ -129,7 +136,14 @@ Parameters:
}
},
"archived"
:
false
,
"avatar_url"
:
null
"avatar_url"
:
null
,
"shared_runners_enabled"
:
true
,
"forks_count"
:
0
,
"star_count"
:
0
,
"build_allow_git_fetch"
:
true
,
"build_coverage_regex"
:
null
,
"build_timeout"
:
3600
,
"runners_token"
:
"b8547b1dc37721d05889db52fa2f02"
}
]
```
...
...
@@ -244,7 +258,14 @@ Parameters:
}
},
"archived"
:
false
,
"avatar_url"
:
"http://example.com/uploads/project/avatar/3/uploads/avatar.png"
"avatar_url"
:
"http://example.com/uploads/project/avatar/3/uploads/avatar.png"
,
"shared_runners_enabled"
:
true
,
"forks_count"
:
0
,
"star_count"
:
0
,
"build_allow_git_fetch"
:
true
,
"build_coverage_regex"
:
null
,
"build_timeout"
:
3600
,
"runners_token"
:
"b8bc4a7a29eb76ea83cf79e4908c2b"
}
```
...
...
@@ -409,6 +430,9 @@ Parameters:
-
`public`
(optional) - if
`true`
same as setting visibility_level = 20
-
`visibility_level`
(optional)
-
`import_url`
(optional)
-
`build_allow_git_fetch`
(optional)
-
`build_timeout`
(optional)
-
`build_coverage_regex`
(optional)
### Create project for user
...
...
@@ -431,6 +455,9 @@ Parameters:
-
`public`
(optional) - if
`true`
same as setting visibility_level = 20
-
`visibility_level`
(optional)
-
`import_url`
(optional)
-
`build_allow_git_fetch`
(optional)
-
`build_timeout`
(optional)
-
`build_coverage_regex`
(optional)
### Edit project
...
...
@@ -454,6 +481,9 @@ Parameters:
-
`snippets_enabled`
(optional)
-
`public`
(optional) - if
`true`
same as setting visibility_level = 20
-
`visibility_level`
(optional)
-
`build_allow_git_fetch`
(optional)
-
`build_timeout`
(optional)
-
`build_coverage_regex`
(optional)
On success, method returns 200 with the updated project. If parameters are
invalid, 400 is returned.
...
...
lib/api/projects.rb
View file @
ba9799b4
...
...
@@ -98,6 +98,9 @@ module API
# public (optional) - if true same as setting visibility_level = 20
# visibility_level (optional) - 0 by default
# import_url (optional)
# build_allow_git_fetch (optional)
# build_timeout (optional)
# build_coverage_regex (optional)
# Example Request
# POST /projects
post
do
...
...
@@ -146,6 +149,9 @@ module API
# public (optional) - if true same as setting visibility_level = 20
# visibility_level (optional)
# import_url (optional)
# build_allow_git_fetch (optional)
# build_timeout (optional)
# build_coverage_regex (optional)
# Example Request
# POST /projects/user/:user_id
post
"user/:user_id"
do
...
...
@@ -207,6 +213,9 @@ module API
# shared_runners_enabled (optional)
# public (optional) - if true same as setting visibility_level = 20
# visibility_level (optional) - visibility level of a project
# build_allow_git_fetch (optional)
# build_timeout (optional)
# build_coverage_regex (optional)
# Example Request
# PUT /projects/:id
put
':id'
do
...
...
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