Commit 931ec399 authored by Riyad Preukschas's avatar Riyad Preukschas

Remove the code parameter from the projects API

parent b510f8c4
No related merge requests found
...@@ -10,7 +10,6 @@ GET /projects ...@@ -10,7 +10,6 @@ GET /projects
[ [
{ {
"id": 3, "id": 3,
"code": "rails",
"name": "rails", "name": "rails",
"description": null, "description": null,
"path": "rails", "path": "rails",
...@@ -32,7 +31,6 @@ GET /projects ...@@ -32,7 +31,6 @@ GET /projects
}, },
{ {
"id": 5, "id": 5,
"code": "gitlab",
"name": "gitlab", "name": "gitlab",
"description": null, "description": null,
"path": "gitlab", "path": "gitlab",
...@@ -70,7 +68,6 @@ Parameters: ...@@ -70,7 +68,6 @@ Parameters:
```json ```json
{ {
"id": 5, "id": 5,
"code": "gitlab",
"name": "gitlab", "name": "gitlab",
"description": null, "description": null,
"path": "gitlab", "path": "gitlab",
...@@ -103,7 +100,6 @@ POST /projects ...@@ -103,7 +100,6 @@ POST /projects
Parameters: Parameters:
+ `name` (required) - new project name + `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 + `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
......
...@@ -18,7 +18,7 @@ module Gitlab ...@@ -18,7 +18,7 @@ module Gitlab
end end
class Project < Grape::Entity 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 :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 ...@@ -27,7 +27,6 @@ module Gitlab
# #
# Parameters: # Parameters:
# name (required) - name for new project # 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 # 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment