mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
167 lines
4.2 KiB
JSON
167 lines
4.2 KiB
JSON
{
|
|
"get": {
|
|
"tags": ["Releases"],
|
|
"description": "Return a list of deploys for a given release.",
|
|
"operationId": "List a Release's Deploys",
|
|
"parameters": [
|
|
{
|
|
"name": "organization_slug",
|
|
"in": "path",
|
|
"description": "The slug of the organization.",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "version",
|
|
"in": "path",
|
|
"description": "The version identifier of the release.",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "Success",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "../../components/schemas/releases/deploy.json#/Deploy"
|
|
}
|
|
},
|
|
"example": [
|
|
{
|
|
"environment": "prod",
|
|
"name": null,
|
|
"url": null,
|
|
"dateStarted": null,
|
|
"dateFinished": "2020-08-31T19:40:38.651670Z",
|
|
"id": "1234567"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"404": {
|
|
"description": "Not Found"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"auth_token": ["project:releases"]
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"tags": ["Releases"],
|
|
"description": "Create a deploy.",
|
|
"operationId": "Create a New Deploy for an Organization",
|
|
"parameters": [
|
|
{
|
|
"name": "organization_slug",
|
|
"in": "path",
|
|
"description": "The slug of the organization.",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "version",
|
|
"in": "path",
|
|
"description": "The version identifier of the release.",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["environment"],
|
|
"properties": {
|
|
"environment": {
|
|
"type": "string",
|
|
"description": "The environment you're deploying to."
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"description": "The optional URL that points to the deploy."
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "The optional name of the deploy."
|
|
},
|
|
"projects": {
|
|
"type": "array",
|
|
"description": "The optional list of projects to deploy.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"dateStarted": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "An optional date that indicates when the deploy started."
|
|
},
|
|
"dateFinished": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "An optional date that indicates when the deploy ended. If not provided, the current time is used."
|
|
}
|
|
}
|
|
},
|
|
"example": {
|
|
"environment": "prod"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "Success",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../../components/schemas/releases/deploy.json#/Deploy"
|
|
},
|
|
"example": {
|
|
"environment": "prod",
|
|
"name": null,
|
|
"url": null,
|
|
"dateStarted": null,
|
|
"dateFinished": "2020-08-31T19:40:38.651670Z",
|
|
"id": "1234567"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"208": {
|
|
"description": "Already Reported"
|
|
},
|
|
"403": {
|
|
"description": "Forbidden"
|
|
},
|
|
"404": {
|
|
"description": "Not Found"
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"auth_token": ["project:releases"]
|
|
}
|
|
]
|
|
}
|
|
}
|