We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
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";
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: