123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- {
- "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"]
- }
- ]
- }
- }
|