Stubbing out endpoints is not usually a task that takes a long time and usually the code is auto generated from a mechanism like openapi.
I could see it generating out an openapi file but there are already so many templates out there to start from it does not make sense to use ai for this, in my opinion.