Added deployments overview
This commit is contained in:
@@ -244,6 +244,50 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/deployments/{id}": {
|
||||
"get": {
|
||||
"description": "Get a single deployment by its ID",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Deployments"
|
||||
],
|
||||
"summary": "Get deployment by ID",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Deployment ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.Deployment"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.APIError"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.APIError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/forward-rules/{id}": {
|
||||
"get": {
|
||||
"description": "Returns a single forward rule by ID",
|
||||
@@ -826,6 +870,50 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/sites/{id}/enabled": {
|
||||
"patch": {
|
||||
"description": "Enable or disable a site by its ID",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Sites"
|
||||
],
|
||||
"summary": "Toggle site enabled status",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Site ID",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.ToggleEnabledResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.APIError"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.APIError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/sites/{id}/forward-rules": {
|
||||
"get": {
|
||||
"description": "Returns all forward rules associated with the given site",
|
||||
@@ -926,6 +1014,51 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/sites/{siteId}/deployments": {
|
||||
"get": {
|
||||
"description": "Get a list of deployments for a specific site",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Deployments"
|
||||
],
|
||||
"summary": "Get deployments for a site",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Site ID",
|
||||
"name": "siteId",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"default": 100,
|
||||
"description": "Maximum number of deployments to return",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.GetDeploymentsBySiteResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.APIError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
@@ -960,11 +1093,58 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"regex": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.Deployment": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"commit_hash": {
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"finish_time": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"site_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"start_time": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/models.DeploymentStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.DeploymentStatus": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"pending",
|
||||
"running",
|
||||
"success",
|
||||
"failed"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"DeploymentStatusPending",
|
||||
"DeploymentStatusRunning",
|
||||
"DeploymentStatusSuccess",
|
||||
"DeploymentStatusFailed"
|
||||
]
|
||||
},
|
||||
"models.ForwardRule": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -999,6 +1179,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.GetDeploymentsBySiteResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"deployments": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/models.Deployment"
|
||||
}
|
||||
},
|
||||
"total": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.Header": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1019,6 +1213,9 @@
|
||||
"branch": {
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"custom_headers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -1046,6 +1243,12 @@
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"index_file": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"not_found_file": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1057,6 +1260,17 @@
|
||||
},
|
||||
"spa": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"trailing_slash": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.ToggleEnabledResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user