Skip to content
Snippets Groups Projects
Commit 056fa05b authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Remove path parameter from projects API

parent 1ba28aae
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -12,7 +12,6 @@ GET /projects
"id": 3,
"name": "rails",
"description": null,
"path": "rails",
"default_branch": "master",
"owner": {
"id": 1,
Loading
Loading
@@ -33,7 +32,6 @@ GET /projects
"id": 5,
"name": "gitlab",
"description": null,
"path": "gitlab",
"default_branch": "api",
"owner": {
"id": 1,
Loading
Loading
@@ -70,7 +68,6 @@ Parameters:
"id": 5,
"name": "gitlab",
"description": null,
"path": "gitlab",
"default_branch": "api",
"owner": {
"id": 1,
Loading
Loading
@@ -100,7 +97,6 @@ POST /projects
Parameters:
 
+ `name` (required) - new project name
+ `path` (optional) - new project path, uses project name if not set
+ `description` (optional) - short project description
+ `default_branch` (optional) - 'master' by default
+ `issues_enabled` (optional) - enabled by default
Loading
Loading
Loading
Loading
@@ -18,7 +18,7 @@ module Gitlab
end
 
class Project < Grape::Entity
expose :id, :name, :description, :path, :default_branch
expose :id, :name, :description, :default_branch
expose :owner, using: Entities::UserBasic
expose :private_flag, as: :private
expose :issues_enabled, :merge_requests_enabled, :wall_enabled, :wiki_enabled, :created_at
Loading
Loading
Loading
Loading
@@ -27,7 +27,6 @@ module Gitlab
#
# Parameters:
# name (required) - name for new project
# path (optional) - path for new project, uses project name if not set
# description (optional) - short project description
# default_branch (optional) - 'master' by default
# issues_enabled (optional) - enabled by default
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment