From c8aa09ba21b33b83e5bc128dbdd02c52b3d8dadb Mon Sep 17 00:00:00 2001 From: Rishabh Gupta Date: Thu, 28 Feb 2019 00:18:52 +0530 Subject: [PATCH] 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 --- api-docs/swagger.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/api-docs/swagger.yml b/api-docs/swagger.yml index c7d2c92b..0bfa8e98 100644 --- a/api-docs/swagger.yml +++ b/api-docs/swagger.yml @@ -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'