Open snuup opened 3 months ago
My Api has name "getDog" which the tool renames into getDogList although its a single dog, so that makes no sense at all.
I copied the templates folder from the repo and pointed to my own templates folder like so:
... -t tools/swaggerts/templates/default
Then I changed the route-name.ejs to
const methodAliases = { get: (pathName, hasPathInserts) => _.camelCase(`${pathName}_${hasPathInserts ? "detailaaaa" : "listxxxxx"}`),
But those changes do not appear in the generated api. How do custom templates work?
I have encountered a similar issue as well.
I edit the api.ejs like this:
the result is
where is “import x from "../../utils/request";
My Api has name "getDog" which the tool renames into getDogList although its a single dog, so that makes no sense at all.
I copied the templates folder from the repo and pointed to my own templates folder like so:
Then I changed the route-name.ejs to
But those changes do not appear in the generated api. How do custom templates work?