mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-08 17:32:35 +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:
@ -61,7 +61,7 @@ endpoints:
|
||||
responses:
|
||||
-
|
||||
status: 200
|
||||
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":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
||||
content: '{"data":[{"id":null,"site_id":null,"mode":307,"from":"ipsum","to":"http:\/\/fritsch.biz\/","status":"ready","created_at":null,"updated_at":null},{"id":null,"site_id":null,"mode":302,"from":"culpa","to":"http:\/\/www.huels.net\/aut-ut-ut-porro-non-rerum-voluptatum.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":"« Previous","active":false},{"url":"\/?page=1","label":"1","active":true},{"url":null,"label":"Next »","active":false}],"path":"\/","per_page":25,"to":2,"total":2}}'
|
||||
headers: []
|
||||
description: ''
|
||||
custom: []
|
||||
@ -69,7 +69,7 @@ endpoints:
|
||||
auth:
|
||||
- headers
|
||||
- Authorization
|
||||
- 'Bearer 4fD5a38caEk1vZPdbVh66ge'
|
||||
- 'Bearer cV16fevgEZhPadD43685akb'
|
||||
controller: null
|
||||
method: null
|
||||
route: null
|
||||
@ -133,7 +133,7 @@ endpoints:
|
||||
name: from
|
||||
description: ''
|
||||
required: true
|
||||
example: qui
|
||||
example: odit
|
||||
type: string
|
||||
enumValues: []
|
||||
exampleWasSpecified: false
|
||||
@ -143,7 +143,7 @@ endpoints:
|
||||
name: to
|
||||
description: ''
|
||||
required: true
|
||||
example: voluptatum
|
||||
example: incidunt
|
||||
type: string
|
||||
enumValues: []
|
||||
exampleWasSpecified: false
|
||||
@ -153,7 +153,7 @@ endpoints:
|
||||
name: mode
|
||||
description: ''
|
||||
required: true
|
||||
example: 302
|
||||
example: 301
|
||||
type: string
|
||||
enumValues:
|
||||
- 301
|
||||
@ -164,9 +164,9 @@ endpoints:
|
||||
nullable: false
|
||||
custom: []
|
||||
cleanBodyParameters:
|
||||
from: qui
|
||||
to: voluptatum
|
||||
mode: 302
|
||||
from: odit
|
||||
to: incidunt
|
||||
mode: 301
|
||||
fileParameters: []
|
||||
responses:
|
||||
-
|
||||
@ -179,7 +179,7 @@ endpoints:
|
||||
auth:
|
||||
- headers
|
||||
- Authorization
|
||||
- 'Bearer haPda6v1be64V8gcf3Dk5EZ'
|
||||
- 'Bearer ZD45hPk638abev61EVcagdf'
|
||||
controller: null
|
||||
method: null
|
||||
route: null
|
||||
@ -263,7 +263,7 @@ endpoints:
|
||||
auth:
|
||||
- headers
|
||||
- Authorization
|
||||
- 'Bearer DVP8ve46k3dfhga5Z61bcEa'
|
||||
- 'Bearer Ec3fDgdbae615aPh8k6vV4Z'
|
||||
controller: null
|
||||
method: null
|
||||
route: null
|
||||
|
Reference in New Issue
Block a user