Add endpoint for reading and updating site .env file (#564)

* feat(api): Add endpoint for reading site .env file

- Add GET /api/projects/{project}/servers/{server}/sites/{site}/env endpoint
- Add feature tests with SSH mocking

* added updating env

* fix coding style

* generate docs

---------

Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
This commit is contained in:
Dimitar Yanakiev
2025-04-05 20:59:57 +03:00
committed by GitHub
parent 2a670146d8
commit e98e974e20
31 changed files with 2404 additions and 1395 deletions

View File

@ -58,7 +58,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer 6ab5Ea4gV6d8DPcfvkhZe13'
- 'Bearer gVEce46k8aZfaP3d15vbhD6'
controller: null
method: null
route: null
@ -131,7 +131,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer cg6Zf84vaDahkE13ePdbV65'
- 'Bearer Ef8D5gbV6cadk3Zh1vP46ea'
controller: null
method: null
route: null
@ -204,7 +204,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer EZbkV6ev83fhPga5164aDdc'
- 'Bearer b3DckZ8g6ha6aPe4f5V1vdE'
controller: null
method: null
route: null
@ -277,7 +277,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer e6da1Ek63v84hDbVPgaZcf5'
- 'Bearer 1e8aZbfvE5643DacgkPhdV6'
controller: null
method: null
route: null
@ -350,7 +350,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer efPg36badVZh8451aEvkc6D'
- 'Bearer c46baVZEg5dv1Pfe8Dha6k3'
controller: null
method: null
route: null
@ -423,7 +423,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer kaeaZ6Vh56cgbP38f1dDv4E'
- 'Bearer EvcehkDbdV43f61P86Za5ga'
controller: null
method: null
route: null
@ -496,7 +496,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer cDagaEVZ3d4e616kP8fhv5b'
- 'Bearer k8E5gf6d4h31bevaa6cVPZD'
controller: null
method: null
route: null
@ -569,7 +569,7 @@ endpoints:
auth:
- headers
- Authorization
- 'Bearer dPk3D4VaZhv8Eabef5166gc'
- 'Bearer Pekav16cd5ag486ZfD3EVbh'
controller: null
method: null
route: null