Skip to content
Snippets Groups Projects
Commit c8aa09ba authored by Rishabh Gupta's avatar Rishabh Gupta Committed by Alex Ellis
Browse files

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: default avatarRishabh <Gupta&lt;r.g.gupta@outlook.com>
parent 44f423ba
No related branches found
No related tags found
No related merge requests found
......@@ -264,9 +264,7 @@ paths:
'200':
description: List of submitted secrets.
schema:
type: array
items:
$ref: '#/definitions/Secret'
$ref: '#/definitions/SecretName'
post:
summary: Create a new secret.
description: ''
......@@ -324,7 +322,7 @@ paths:
description: Secret to delete
required: true
schema:
$ref: '#/definitions/Secret'
$ref: '#/definitions/SecretName'
responses:
'204':
description: OK
......@@ -561,6 +559,13 @@ definitions:
example: changeme
required:
- name
SecretName:
type: object
properties:
name:
type: string
description: Name of secret
example: aws-key
externalDocs:
description: More documentation available on Github
url: 'https://github.com/openfaas/faas'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment