How to generate OpenAPI specs from Netlify functions?

I think you will find the following threads will provide you with good information on this topic