Remove path parameter from projects API
This commit is contained in:
parent
1ba28aaef8
commit
056fa05b86
|
@ -12,7 +12,6 @@ GET /projects
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"name": "rails",
|
"name": "rails",
|
||||||
"description": null,
|
"description": null,
|
||||||
"path": "rails",
|
|
||||||
"default_branch": "master",
|
"default_branch": "master",
|
||||||
"owner": {
|
"owner": {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
|
@ -33,7 +32,6 @@ GET /projects
|
||||||
"id": 5,
|
"id": 5,
|
||||||
"name": "gitlab",
|
"name": "gitlab",
|
||||||
"description": null,
|
"description": null,
|
||||||
"path": "gitlab",
|
|
||||||
"default_branch": "api",
|
"default_branch": "api",
|
||||||
"owner": {
|
"owner": {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
|
@ -70,7 +68,6 @@ Parameters:
|
||||||
"id": 5,
|
"id": 5,
|
||||||
"name": "gitlab",
|
"name": "gitlab",
|
||||||
"description": null,
|
"description": null,
|
||||||
"path": "gitlab",
|
|
||||||
"default_branch": "api",
|
"default_branch": "api",
|
||||||
"owner": {
|
"owner": {
|
||||||
"id": 1,
|
"id": 1,
|
||||||
|
@ -100,7 +97,6 @@ POST /projects
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
+ `name` (required) - new project name
|
+ `name` (required) - new project name
|
||||||
+ `path` (optional) - new project path, uses project name if not set
|
|
||||||
+ `description` (optional) - short project description
|
+ `description` (optional) - short project description
|
||||||
+ `default_branch` (optional) - 'master' by default
|
+ `default_branch` (optional) - 'master' by default
|
||||||
+ `issues_enabled` (optional) - enabled by default
|
+ `issues_enabled` (optional) - enabled by default
|
||||||
|
|
|
@ -18,7 +18,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
class Project < Grape::Entity
|
class Project < Grape::Entity
|
||||||
expose :id, :name, :description, :path, :default_branch
|
expose :id, :name, :description, :default_branch
|
||||||
expose :owner, using: Entities::UserBasic
|
expose :owner, using: Entities::UserBasic
|
||||||
expose :private_flag, as: :private
|
expose :private_flag, as: :private
|
||||||
expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
|
expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
|
||||||
|
|
|
@ -27,7 +27,6 @@ module Gitlab
|
||||||
#
|
#
|
||||||
# Parameters:
|
# Parameters:
|
||||||
# name (required) - name for new project
|
# name (required) - name for new project
|
||||||
# path (optional) - path for new project, uses project name if not set
|
|
||||||
# description (optional) - short project description
|
# description (optional) - short project description
|
||||||
# default_branch (optional) - 'master' by default
|
# default_branch (optional) - 'master' by default
|
||||||
# issues_enabled (optional) - enabled by default
|
# issues_enabled (optional) - enabled by default
|
||||||
|
|
Loading…
Reference in a new issue