Add endpoint for triggering site deployment (#563)

* feat(api): Add endpoint for triggering site deployment

- Add POST /api/projects/{project}/servers/{server}/sites/{site}/deploy endpoint
- Add feature tests

* fix merge issue and generate api docs

* fix merge

---------

Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
This commit is contained in:
Dimitar Yanakiev
2025-04-05 20:41:52 +03:00
committed by GitHub
parent f483f7fdca
commit 2a670146d8
33 changed files with 1941 additions and 1450 deletions

View File

@ -60,7 +60,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer 46fadkVc1vP5Ea8hg3bZeD6'
- 'Bearer Pg1hVfEvc3e5kada68Z6b4D'
controller: null
method: null
route: null
@ -113,7 +113,7 @@ endpoints:
name: command
description: ''
required: true
example: sit
example: nisi
type: string
enumValues: []
exampleWasSpecified: false
@ -123,7 +123,7 @@ endpoints:
name: user
description: ''
required: true
example: root
example: vito
type: string
enumValues:
- root
@ -142,8 +142,8 @@ endpoints:
nullable: false
custom: []
cleanBodyParameters:
command: sit
user: root
command: nisi
user: vito
frequency: '* * * * *'
fileParameters: []
responses:
@ -157,7 +157,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer eaEVDZ1ka5v4hf6Pgcd386b'
- 'Bearer 5E3Vv4cah8D6bZa1kgPfe6d'
controller: null
method: null
route: null
@ -204,7 +204,7 @@ endpoints:
name: cronJob_id
description: 'The ID of the cronJob.'
required: true
example: 13
example: 14
type: integer
enumValues: []
exampleWasSpecified: false
@ -213,7 +213,7 @@ endpoints:
cleanUrlParameters:
project_id: 1
server_id: 29
cronJob_id: 13
cronJob_id: 14
queryParameters: []
cleanQueryParameters: []
bodyParameters: []
@ -230,7 +230,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer gZkc1Vh568badDefE64vPa3'
- 'Bearer e68fh451vcb6Zd3DEVaaPgk'
controller: null
method: null
route: null
@ -277,7 +277,7 @@ endpoints:
name: cronJob_id
description: 'The ID of the cronJob.'
required: true
example: 16
example: 9
type: integer
enumValues: []
exampleWasSpecified: false
@ -286,7 +286,7 @@ endpoints:
cleanUrlParameters:
project_id: 1
server_id: 29
cronJob_id: 16
cronJob_id: 9
queryParameters: []
cleanQueryParameters: []
bodyParameters: []
@ -303,7 +303,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer PceD65b61vaV8Eg3a4dkfhZ'
- 'Bearer hEkD1b3a845fVPZg6ecad6v'
controller: null
method: null
route: null