Deploy API
URL Base:
https://service.devstats.com/api/v1Autorização
Token Bearer obrigatório. Incluir no header:
Authorization: Bearer <token>GET
/deploysList Deploys
Retrieves a list of deploys.
Parâmetros de Query
| Name | Type | In | Required | Description |
|---|---|---|---|---|
per_page | number | query | No | Min: 1 |
page | number | query | No | Min: 1 |
repository | string | query | No | Min length: 1Max length: 255 |
GET /api/v1/deploys HTTP/1.1
Host: service.devstats.com
Authorization: Bearer <token>
Accept: application/jsonRespostas
POST
/deploysCreate Deploy
Creates a new deployment for the repository.
Corpo da Requisição
| Name | Type | In | Required | Description |
|---|---|---|---|---|
repository | string | body | Yes | The full name of the repository. |
deployed_at | string | body | Yes | The deployment date in the ISO 8601 format. |
commit_sha | string | body | No | The commit SHA of the deployment. |
POST /api/v1/deploys HTTP/1.1
Host: service.devstats.com
Authorization: Bearer <token>
Accept: application/json
Content-Type: application/json
{
"repository": "organization/repository",
"deployed_at": "2024-07-20T15:30:00-03:00",
"commit_sha": "1234567890abcdef1234567890abcdef12345678"
}Respostas
DELETE
/deploys/{deploy}Delete Deploy
Deletes an existing deploy.
Parâmetros de Path
| Name | Type | In | Required | Description |
|---|---|---|---|---|
deploy | string | path | Yes | The deploy UUID |
DELETE /api/v1/deploys/<deploy> HTTP/1.1
Host: service.devstats.com
Authorization: Bearer <token>
Accept: application/jsonRespostas
PATCH
/deploys/{deploy}Update Deploy
Updates an existing deploy.
Parâmetros de Path
| Name | Type | In | Required | Description |
|---|---|---|---|---|
deploy | string | path | Yes | The deploy UUID |
Corpo da Requisição
| Name | Type | In | Required | Description |
|---|---|---|---|---|
deployed_at | string | body | No | The deployment date in the ISO 8601 format. |
commit_sha | string | body | No | The commit SHA of the deployment. |
PATCH /api/v1/deploys/<deploy> HTTP/1.1
Host: service.devstats.com
Authorization: Bearer <token>
Accept: application/json
Content-Type: application/json
{
"deployed_at": "2024-07-20T15:30:00-03:00",
"commit_sha": "1234567890abcdef1234567890abcdef12345678"
}Respostas