Remove the code parameter from the projects API

This commit is contained in:
Riyad Preukschas 2012-12-21 18:43:46 +01:00
parent b510f8c496
commit 931ec399bd
3 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -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