Commit 542be288 authored by Ben Boeckel's avatar Ben Boeckel

entities: make Environment inherit EnvironmentBasic

parent 9b079219
...@@ -514,13 +514,12 @@ module API ...@@ -514,13 +514,12 @@ module API
expose :duration expose :duration
end end
class Environment < Grape::Entity class EnvironmentBasic < Grape::Entity
expose :id, :name, :external_url expose :id, :name, :external_url
expose :project, using: Entities::Project
end end
class EnvironmentBasic < Grape::Entity class Environment < EnvironmentBasic
expose :id, :name, :external_url expose :project, using: Entities::Project
end end
class Deployment < Grape::Entity class Deployment < Grape::Entity
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment