Express js swagger dynamic routes

  Kiến thức lập trình

I have an express application, that I am reading some JSON files and creating the application routes based on those JSON files. Each object of the JSON files, describes the request type, the path, the controller and the method of that controller. Is there a way to document these routes with swagger? If no is there another way that maybe can help? Thanks in advance.
Example of route inside json

{ path: 'api/whatever', type: 'post', controller: 'whatever', method: 'whatever' }

I want a solution like jdoc if possible, but I don’t know if is possible to add dynamic parameters.

New contributor

user26327420 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT