diff options
author | Toon Claes <toon@gitlab.com> | 2017-02-16 15:47:02 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-03-02 12:15:24 +0100 |
commit | ed8f13c745da849c319eb8e9d8fd3e59bb804a08 (patch) | |
tree | d9f88bd0a39b59d68cf4bb6e66dac8ffb4821005 /lib/api/v3/entities.rb | |
parent | f45cbc87015dd2e6369e758ca96132cb44c8983a (diff) | |
download | gitlab-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.rb | 4 |
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 |