SOLUTION: Add custom routes in swagger and change swagger settings based on swagger, with Strapi 4 default overwrite

I found some solutions to create custom routes and add them to the swagger documentation, it also includes removing methods that will not be used and there is also how to use other information based on swagger, such as summary, description and other resources you want.

Codes and where to change the files, here: https://gist.github.com/dansp89/dde3840fe0b2043e062391f58a001d9e

1 Like

this fork also seems to work for adding your custom api routes into the strapi documentation [Bug]: Documentation for custom routes [documentation plugin] · Issue #844 · strapi/documentation · GitHub