diff --git a/spec.yaml b/spec.yaml index 1a2dc0f..81eacd0 100644 --- a/spec.yaml +++ b/spec.yaml @@ -339,7 +339,32 @@ paths: # description: "Something went wrong" # 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/new_programs: post: tags: