From c76a354764983ecb43b532a1bd6db0b75ad36a6a Mon Sep 17 00:00:00 2001 From: Imransk3 Date: Fri, 7 Jul 2023 18:32:47 +0530 Subject: [PATCH] Added "Generate JWT" API endpoint to spec.yaml --- spec.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/spec.yaml b/spec.yaml index ed7ce83..d2bcfe0 100644 --- a/spec.yaml +++ b/spec.yaml @@ -254,7 +254,32 @@ paths: schema: $ref: "#/definitions/generic_error" - + /ingestion/generatejwt: + get: + tags: + - 'ingestion' + summary: 'Generate JWT' + description: 'Generate a JWT token' + produces: + - 'application/json' + responses: + 200: + description: 'Token generated successfully' + schema: + type: 'object' + properties: + token: + type: 'string' + example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' + 400: + description: 'Error generating token' + schema: + type: 'object' + properties: + error: + type: 'string' + example: 'Could not generate token' + /ingestion/event: post: tags: