mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 17:26:47 +00:00
Update /system/secrets API Spec
Previous Spec was flawed as it showed that the response model was ``` [ { "name": "aws-key", "value": "changeme" } ] ``` Changed the model to match what is returned Signed-off-by: Rishabh Gupta<r.g.gupta@outlook.com>
This commit is contained in:
parent
44f423ba2e
commit
c8aa09ba21
@ -264,9 +264,7 @@ paths:
|
|||||||
'200':
|
'200':
|
||||||
description: List of submitted secrets.
|
description: List of submitted secrets.
|
||||||
schema:
|
schema:
|
||||||
type: array
|
$ref: '#/definitions/SecretName'
|
||||||
items:
|
|
||||||
$ref: '#/definitions/Secret'
|
|
||||||
post:
|
post:
|
||||||
summary: Create a new secret.
|
summary: Create a new secret.
|
||||||
description: ''
|
description: ''
|
||||||
@ -324,7 +322,7 @@ paths:
|
|||||||
description: Secret to delete
|
description: Secret to delete
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/Secret'
|
$ref: '#/definitions/SecretName'
|
||||||
responses:
|
responses:
|
||||||
'204':
|
'204':
|
||||||
description: OK
|
description: OK
|
||||||
@ -561,6 +559,13 @@ definitions:
|
|||||||
example: changeme
|
example: changeme
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
|
SecretName:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: Name of secret
|
||||||
|
example: aws-key
|
||||||
externalDocs:
|
externalDocs:
|
||||||
description: More documentation available on Github
|
description: More documentation available on Github
|
||||||
url: 'https://github.com/openfaas/faas'
|
url: 'https://github.com/openfaas/faas'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user