summaryrefslogtreecommitdiff
path: root/lib/api/v3/entities.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-02-16 15:47:02 +0100
committerToon Claes <toon@gitlab.com>2017-03-02 12:15:24 +0100
commited8f13c745da849c319eb8e9d8fd3e59bb804a08 (patch)
treed9f88bd0a39b59d68cf4bb6e66dac8ffb4821005 /lib/api/v3/entities.rb
parentf45cbc87015dd2e6369e758ca96132cb44c8983a (diff)
downloadgitlab-ce-ed8f13c745da849c319eb8e9d8fd3e59bb804a08.tar.gz
Ensure v3 environments endpoints remain unchanged
Because environments also expose the project, ensure the projects are exposed as they were before in API v3.
Diffstat (limited to 'lib/api/v3/entities.rb')
-rw-r--r--lib/api/v3/entities.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/v3/entities.rb b/lib/api/v3/entities.rb
index 9c5a64a6c2f..da5b58cab9c 100644
--- a/lib/api/v3/entities.rb
+++ b/lib/api/v3/entities.rb
@@ -149,6 +149,10 @@ module API
expose :projects, using: Entities::Project
expose :shared_projects, using: Entities::Project
end
+
+ class Environment < ::API::Entities::EnvironmentBasic
+ expose :project, using: Entities::Project
+ end
end
end
end