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

@ -45,7 +45,7 @@ endpoints:
name: site_id
description: 'The ID of the site.'
required: true
example: 11
example: 44
type: integer
enumValues: []
exampleWasSpecified: false
@ -54,7 +54,7 @@ endpoints:
cleanUrlParameters:
project_id: 1
server_id: 29
site_id: 11
site_id: 44
queryParameters: []
cleanQueryParameters: []
bodyParameters: []
@ -63,7 +63,7 @@ endpoints:
responses:
-
status: 200
content: '{"data":[{"id":null,"site_id":null,"mode":301,"from":"error","to":"https:\/\/www.pfannerstill.com\/facere-est-totam-laudantium-in-illo-sequi","status":"ready","created_at":null,"updated_at":null},{"id":null,"site_id":null,"mode":301,"from":"repellat","to":"http:\/\/gislason.biz\/sed-corrupti-et-id-earum-qui-consequatur-quis-voluptas.html","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"&laquo; Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next &raquo;","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
content: '{"data":[{"id":null,"site_id":null,"mode":301,"from":"eaque","to":"http:\/\/www.windler.info\/delectus-facilis-assumenda-consequatur-impedit-hic-dolorem-non-dolore.html","status":"ready","created_at":null,"updated_at":null},{"id":null,"site_id":null,"mode":308,"from":"neque","to":"http:\/\/raynor.biz\/velit-a-tempore-quas-explicabo-doloremque","status":"ready","created_at":null,"updated_at":null}],"links":{"first":"\/?page=1","last":"\/?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"&laquo; Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next &raquo;","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
headers: []
description: ''
custom: []
@ -71,7 +71,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer Pava668DdZfk4cVEg3eb5h1'
- 'Bearer 4fD5a38caEk1vZPdbVh66ge'
controller: null
method: null
route: null
@ -118,7 +118,7 @@ endpoints:
name: site_id
description: 'The ID of the site.'
required: true
example: 11
example: 44
type: integer
enumValues: []
exampleWasSpecified: false
@ -127,7 +127,7 @@ endpoints:
cleanUrlParameters:
project_id: 1
server_id: 29
site_id: 11
site_id: 44
queryParameters: []
cleanQueryParameters: []
bodyParameters:
@ -135,7 +135,7 @@ endpoints:
name: from
description: ''
required: true
example: vel
example: qui
type: string
enumValues: []
exampleWasSpecified: false
@ -145,7 +145,7 @@ endpoints:
name: to
description: ''
required: true
example: ea
example: voluptatum
type: string
enumValues: []
exampleWasSpecified: false
@ -155,7 +155,7 @@ endpoints:
name: mode
description: ''
required: true
example: 307
example: 302
type: string
enumValues:
- 301
@ -166,9 +166,9 @@ endpoints:
nullable: false
custom: []
cleanBodyParameters:
from: vel
to: ea
mode: 307
from: qui
to: voluptatum
mode: 302
fileParameters: []
responses:
-
@ -181,7 +181,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer 14Vg6Dce6aEh8kPbav5Z3fd'
- 'Bearer haPda6v1be64V8gcf3Dk5EZ'
controller: null
method: null
route: null
@ -228,7 +228,7 @@ endpoints:
name: site_id
description: 'The ID of the site.'
required: true
example: 11
example: 44
type: integer
enumValues: []
exampleWasSpecified: false
@ -247,7 +247,7 @@ endpoints:
cleanUrlParameters:
project_id: 1
server_id: 29
site_id: 11
site_id: 44
redirect_id: 9
queryParameters: []
cleanQueryParameters: []
@ -265,7 +265,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer vabZDk1c6fV46Ea3edhP8g5'
- 'Bearer DVP8ve46k3dfhga5Z61bcEa'
controller: null
method: null
route: null