Skip to content

Commit

Permalink
Merge pull request #227 from ImranSk3/dev
Browse files Browse the repository at this point in the history
Added "Generate JWT" API endpoint to spec.yaml
  • Loading branch information
htvenkatesh authored Jul 12, 2023
2 parents 42f5460 + ceb7782 commit 463dadd
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 463dadd

Please sign in to comment.