API: fixes project creation and removed redundant info
This commit is contained in:
parent
3374027e3a
commit
ecf53bb9e6
3 changed files with 3 additions and 8 deletions
|
@ -217,8 +217,6 @@ Parameters:
|
||||||
|
|
||||||
+ `id` (required) - The ID of a project
|
+ `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
|
+ `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
|
```json
|
||||||
[
|
[
|
||||||
|
|
|
@ -6,9 +6,6 @@ module Gitlab
|
||||||
resource :groups do
|
resource :groups do
|
||||||
# Get a groups list
|
# 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:
|
# Example Request:
|
||||||
# GET /groups
|
# GET /groups
|
||||||
get do
|
get do
|
||||||
|
|
|
@ -42,6 +42,7 @@ module Gitlab
|
||||||
# wall_enabled (optional) - enabled by default
|
# wall_enabled (optional) - enabled by default
|
||||||
# merge_requests_enabled (optional) - enabled by default
|
# merge_requests_enabled (optional) - enabled by default
|
||||||
# wiki_enabled (optional) - enabled by default
|
# wiki_enabled (optional) - enabled by default
|
||||||
|
# namespace_id (optional) - defaults to user namespace
|
||||||
# Example Request
|
# Example Request
|
||||||
# POST /projects
|
# POST /projects
|
||||||
post do
|
post do
|
||||||
|
@ -52,7 +53,8 @@ module Gitlab
|
||||||
:issues_enabled,
|
:issues_enabled,
|
||||||
:wall_enabled,
|
:wall_enabled,
|
||||||
:merge_requests_enabled,
|
:merge_requests_enabled,
|
||||||
:wiki_enabled]
|
:wiki_enabled,
|
||||||
|
:namespace_id]
|
||||||
@project = ::Projects::CreateContext.new(current_user, attrs).execute
|
@project = ::Projects::CreateContext.new(current_user, attrs).execute
|
||||||
if @project.saved?
|
if @project.saved?
|
||||||
present @project, with: Entities::Project
|
present @project, with: Entities::Project
|
||||||
|
@ -360,8 +362,6 @@ module Gitlab
|
||||||
# Parameters:
|
# Parameters:
|
||||||
# id (required) - The ID of a project
|
# 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
|
# 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:
|
# Example Request:
|
||||||
# GET /projects/:id/repository/commits
|
# GET /projects/:id/repository/commits
|
||||||
get ":id/repository/commits" do
|
get ":id/repository/commits" do
|
||||||
|
|
Loading…
Reference in a new issue