mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 01:12:34 +00:00
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:
@ -60,7 +60,7 @@ endpoints:
|
||||
auth:
|
||||
- headers
|
||||
- Authorization
|
||||
- 'Bearer Pg1hVfEvc3e5kada68Z6b4D'
|
||||
- 'Bearer eDa6Vdh1Z4vc35bP8E6gafk'
|
||||
controller: null
|
||||
method: null
|
||||
route: null
|
||||
@ -113,7 +113,7 @@ endpoints:
|
||||
name: command
|
||||
description: ''
|
||||
required: true
|
||||
example: nisi
|
||||
example: quia
|
||||
type: string
|
||||
enumValues: []
|
||||
exampleWasSpecified: false
|
||||
@ -123,7 +123,7 @@ endpoints:
|
||||
name: user
|
||||
description: ''
|
||||
required: true
|
||||
example: vito
|
||||
example: root
|
||||
type: string
|
||||
enumValues:
|
||||
- root
|
||||
@ -142,8 +142,8 @@ endpoints:
|
||||
nullable: false
|
||||
custom: []
|
||||
cleanBodyParameters:
|
||||
command: nisi
|
||||
user: vito
|
||||
command: quia
|
||||
user: root
|
||||
frequency: '* * * * *'
|
||||
fileParameters: []
|
||||
responses:
|
||||
@ -157,7 +157,7 @@ endpoints:
|
||||
auth:
|
||||
- headers
|
||||
- Authorization
|
||||
- 'Bearer 5E3Vv4cah8D6bZa1kgPfe6d'
|
||||
- 'Bearer 66EeZvdh3kVaDP8f4ga5c1b'
|
||||
controller: null
|
||||
method: null
|
||||
route: null
|
||||
@ -204,7 +204,7 @@ endpoints:
|
||||
name: cronJob_id
|
||||
description: 'The ID of the cronJob.'
|
||||
required: true
|
||||
example: 14
|
||||
example: 6
|
||||
type: integer
|
||||
enumValues: []
|
||||
exampleWasSpecified: false
|
||||
@ -213,7 +213,7 @@ endpoints:
|
||||
cleanUrlParameters:
|
||||
project_id: 1
|
||||
server_id: 29
|
||||
cronJob_id: 14
|
||||
cronJob_id: 6
|
||||
queryParameters: []
|
||||
cleanQueryParameters: []
|
||||
bodyParameters: []
|
||||
@ -230,7 +230,7 @@ endpoints:
|
||||
auth:
|
||||
- headers
|
||||
- Authorization
|
||||
- 'Bearer e68fh451vcb6Zd3DEVaaPgk'
|
||||
- 'Bearer D4c3Z65ebv8E16fahaVgPdk'
|
||||
controller: null
|
||||
method: null
|
||||
route: null
|
||||
@ -277,7 +277,7 @@ endpoints:
|
||||
name: cronJob_id
|
||||
description: 'The ID of the cronJob.'
|
||||
required: true
|
||||
example: 9
|
||||
example: 13
|
||||
type: integer
|
||||
enumValues: []
|
||||
exampleWasSpecified: false
|
||||
@ -286,7 +286,7 @@ endpoints:
|
||||
cleanUrlParameters:
|
||||
project_id: 1
|
||||
server_id: 29
|
||||
cronJob_id: 9
|
||||
cronJob_id: 13
|
||||
queryParameters: []
|
||||
cleanQueryParameters: []
|
||||
bodyParameters: []
|
||||
@ -303,7 +303,7 @@ endpoints:
|
||||
auth:
|
||||
- headers
|
||||
- Authorization
|
||||
- 'Bearer hEkD1b3a845fVPZg6ecad6v'
|
||||
- 'Bearer h3cP4aZa1v8feDdEg5b6k6V'
|
||||
controller: null
|
||||
method: null
|
||||
route: null
|
||||
|
Reference in New Issue
Block a user