saurav55
11 months agoNew Contributor
Swagger
So my swagger works perfectly for Post API but gives an error message for get API what am i doing wrong
/**
* @swagger
* /auth/get_currency_list:
* get:
* produces:
* - application/json
* summary: Get currency list.
* description: Retrieve a list of currencies.
* tags:
* - Auth
* security:
* - JWTAuth: [] # Specify JWT as the authentication method
* responses:
* '200':
* description: Successfully retrieved currency list.
* content:
* application/json:
* schema:
* type: array
* items:
* type: object
* '401':
* description: Unauthorized. JWT token is missing or invalid.
* '500':
* description: Internal server error.
*/
this.router
.route('/get_currency_list')
.get(AuthController.getCurrencyList);