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.
32 lines
585 B
JSON
32 lines
585 B
JSON
{
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"iid",
|
|
"ref",
|
|
"sha",
|
|
"created_at",
|
|
"user",
|
|
"deployable"
|
|
],
|
|
"properties": {
|
|
"id": { "type": "integer" },
|
|
"iid": { "type": "integer" },
|
|
"ref": { "type": "string" },
|
|
"sha": { "type": "string" },
|
|
"created_at": { "type": "string" },
|
|
"user": {
|
|
"oneOf": [
|
|
{ "type": "null" },
|
|
{ "$ref": "user/basic.json" }
|
|
]
|
|
},
|
|
"deployable": {
|
|
"oneOf": [
|
|
{ "type": "null" },
|
|
{ "$ref": "job.json" }
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|