Kannan
02/14/2023, 4:40 AM/**
* @x-route (POST) /api/login
* @tags Authentication
* @requestBody ~login/requestBody.json
* @response-default ~login/responses.json##200
* @response-401 ~login/responses.json##401
*/
function login( event, rc, prc ) {}
2. Tag based
<cffunction name="login" tags="Authentication">
Showing only the endpoints in the swagger UI. I tried with the same annotation like script based but not working.
<!---
@requestBody ~login/requestBody.json
@response-default ~login/responses.json##200
@response-401 ~login/responses.json##401
--->
I want to show the endpoint with param and sample response through tag based code.
How to add the param and sample response in the tag based code?
Could you please advise me?