-
Discussed in https://github.com/jellydn/next-swagger-doc/discussions/527Originally posted by oespn November 3, 2022 If I use the path template in the open api spec v3 https://swagger.io/docs/specification/paths-and-operations/ the swagger docs won't generate.
I've fiddled a little and can get the {id} to appear in the path but do not know how to have the lib identify the params and create the relevant front-end control or even list the name, description, type of the param. here's my code:
Is the lib able to handle parameters? If so, how? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there. You. could take a look at the swagger-jsdoc's example https://github.com/Surnet/swagger-jsdoc/blob/v6/examples/app/routes.js Hopefully that would help you on this. Thanks. |
Beta Was this translation helpful? Give feedback.
Hi there. You. could take a look at the swagger-jsdoc's example https://github.com/Surnet/swagger-jsdoc/blob/v6/examples/app/routes.js Hopefully that would help you on this. Thanks.