BigW Consortium Gitlab

Commit 542be288 by Ben Boeckel

entities: make Environment inherit EnvironmentBasic

parent 9b079219
......@@ -514,13 +514,12 @@ module API
expose :duration
end
class Environment < Grape::Entity
class EnvironmentBasic < Grape::Entity
expose :id, :name, :external_url
expose :project, using: Entities::Project
end
class EnvironmentBasic < Grape::Entity
expose :id, :name, :external_url
class Environment < EnvironmentBasic
expose :project, using: Entities::Project
end
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