Should the documentation module be able to autogenerate openapi spec for my custom api?

System Information
  • Strapi Version: 4.15.5
  • Operating System: windows
  • Database: mysql
  • Node Version: 18.15.0
  • NPM Version: 9.5.0

I have created a new api using npx strapi generate.
I am using typescript.
I have defined a single route and a single corresponding function in a controller.
Everything works fine. But how do I get the documentation module to generate openapi spec for the custom api? Can I expect this to be autogenerated if my code is strongly typed? Or do I have to maintain the openapi spec manually?