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
Boxiang Sun
gitlab-ce
Commits
ecf53bb9
Commit
ecf53bb9
authored
Mar 07, 2013
by
Sebastian Ziebell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: fixes project creation and removed redundant info
parent
3374027e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
doc/api/repositories.md
doc/api/repositories.md
+0
-2
lib/api/groups.rb
lib/api/groups.rb
+0
-3
lib/api/projects.rb
lib/api/projects.rb
+3
-3
No files found.
doc/api/repositories.md
View file @
ecf53bb9
...
...
@@ -217,8 +217,6 @@ Parameters:
+
`id`
(required) - The ID of a project
+
`ref_name`
(optional) - The name of a repository branch or tag or if not given the default branch
+
`page`
(optional) - The page with the commits (pagination)
+
`per_page`
(optional) - The number of commits per page (pagination)
```
json
[
...
...
lib/api/groups.rb
View file @
ecf53bb9
...
...
@@ -6,9 +6,6 @@ module Gitlab
resource
:groups
do
# Get a groups list
#
# Parameters
# page (optional) - The page number of the groups list
# per_page (optional) - The number of elements per page
# Example Request:
# GET /groups
get
do
...
...
lib/api/projects.rb
View file @
ecf53bb9
...
...
@@ -42,6 +42,7 @@ module Gitlab
# wall_enabled (optional) - enabled by default
# merge_requests_enabled (optional) - enabled by default
# wiki_enabled (optional) - enabled by default
# namespace_id (optional) - defaults to user namespace
# Example Request
# POST /projects
post
do
...
...
@@ -52,7 +53,8 @@ module Gitlab
:issues_enabled
,
:wall_enabled
,
:merge_requests_enabled
,
:wiki_enabled
]
:wiki_enabled
,
:namespace_id
]
@project
=
::
Projects
::
CreateContext
.
new
(
current_user
,
attrs
).
execute
if
@project
.
saved?
present
@project
,
with:
Entities
::
Project
...
...
@@ -360,8 +362,6 @@ module Gitlab
# Parameters:
# id (required) - The ID of a project
# ref_name (optional) - The name of a repository branch or tag, if not given the default branch is used
# page (optional) - The page number of the commit pagination
# per_page (optional) - The number of elements per page used in pagination
# Example Request:
# GET /projects/:id/repository/commits
get
":id/repository/commits"
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