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

Remove the code parameter from the projects API

parent b510f8c4
No related branches found
No related tags found
1 merge request!2330V4.0 API fixes
Loading
Loading
@@ -10,7 +10,6 @@ GET /projects
[
{
"id": 3,
"code": "rails",
"name": "rails",
"description": null,
"path": "rails",
Loading
Loading
@@ -32,7 +31,6 @@ GET /projects
},
{
"id": 5,
"code": "gitlab",
"name": "gitlab",
"description": null,
"path": "gitlab",
Loading
Loading
@@ -70,7 +68,6 @@ Parameters:
```json
{
"id": 5,
"code": "gitlab",
"name": "gitlab",
"description": null,
"path": "gitlab",
Loading
Loading
@@ -103,7 +100,6 @@ POST /projects
Parameters:
 
+ `name` (required) - new project name
+ `code` (optional) - new project code, uses project name if not set
+ `path` (optional) - new project path, uses project name if not set
+ `description` (optional) - short project description
+ `default_branch` (optional) - 'master' by default
Loading
Loading
Loading
Loading
@@ -18,7 +18,7 @@ module Gitlab
end
 
class Project < Grape::Entity
expose :id, :code, :name, :description, :path, :default_branch
expose :id, :name, :description, :path, :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
# code (optional) - code for new project, uses project name if not set
# path (optional) - path for new project, uses project name if not set
# description (optional) - short project description
# default_branch (optional) - 'master' 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