Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-21 16:35:45 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-21 16:35:45 +0400
commit4afb7b7cb7b42688bea70298c80b4735f59dab22 (patch)
tree09b720d1beaa3e1e371345b3373629c9c9f63ae4 /lib/api/entities.rb
parent131553627d2e62cea2ea8a342250ca2d2495d8fc (diff)
parentbbdb2c3fef5a71802131c08226d7f4dfa18ddd89 (diff)
Merge pull request #1522 from NARKOZ/apiv2.9.0
API clean up
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index fd19fa0e87f..ee693de699e 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -17,11 +17,6 @@ module Gitlab
expose :id, :url
end
- class Commit < Grape::Entity
- expose :id, :short_id, :title,
- :author_name, :author_email, :created_at
- end
-
class Project < Grape::Entity
expose :id, :code, :name, :description, :path, :default_branch
expose :owner, using: Entities::UserBasic
@@ -39,6 +34,10 @@ module Gitlab
expose :name, :commit
end
+ class RepoCommit < Grape::Entity
+ expose :id, :short_id, :title, :author_name, :author_email, :created_at
+ end
+
class ProjectSnippet < Grape::Entity
expose :id, :title, :file_name
expose :author, using: Entities::UserBasic
@@ -61,8 +60,8 @@ module Gitlab
expose :closed, :updated_at, :created_at
end
- class Key < Grape::Entity
- expose :id, :title, :key
+ class SSHKey < Grape::Entity
+ expose :id, :title, :key
end
end
end