summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-21 18:43:46 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-21 18:43:46 +0100
commit931ec399bd16321f5bdd8e745f2f87dfe25a83ac (patch)
treef501bcbeafd843d5874ae1620bcb72ea6207c2ba /lib/api
parentb510f8c4965b210cc1a583fc15dc09871669e1bf (diff)
downloadgitlab-ce-931ec399bd16321f5bdd8e745f2f87dfe25a83ac.tar.gz
Remove the code parameter from the projects API
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb2
-rw-r--r--lib/api/projects.rb1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 070fbad27ed..92245a9f093 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -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
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 044a6272766..2e140951484 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -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