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

Remove the code parameter from the projects API

parent b510f8c4
......@@ -10,7 +10,6 @@ GET /projects
[
{
"id": 3,
"code": "rails",
"name": "rails",
"description": null,
"path": "rails",
......@@ -32,7 +31,6 @@ GET /projects
},
{
"id": 5,
"code": "gitlab",
"name": "gitlab",
"description": null,
"path": "gitlab",
......@@ -70,7 +68,6 @@ Parameters:
```json
{
"id": 5,
"code": "gitlab",
"name": "gitlab",
"description": null,
"path": "gitlab",
......@@ -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
......
......@@ -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
......
......@@ -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
......
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