724f19ba0a
This is resolving https://gitlab.com/gitlab-org/gitlab-ce/issues/30157. Implement new API endpoint `/projects/:id/environments/:environment_id` to expose single environment. Include information for environment's last deployment if there is one.
23 lines
467 B
JSON
23 lines
467 B
JSON
{
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"slug",
|
|
"external_url",
|
|
"last_deployment"
|
|
],
|
|
"properties": {
|
|
"id": { "type": "integer" },
|
|
"name": { "type": "string" },
|
|
"slug": { "type": "string" },
|
|
"external_url": { "$ref": "../../types/nullable_string.json" },
|
|
"last_deployment": {
|
|
"oneOf": [
|
|
{ "type": "null" },
|
|
{ "$ref": "deployment.json" }
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|