swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

Why are all routes appended with List ?

Open VincentVanclef opened this issue 4 years ago • 3 comments

As title says, why are all the routes appended with List?

e.g.:

dashboard.intangibleValueList

wouldnt it make more sense to append with the request type? E.g. Post, Get?

dashboard.intangibleValueGet

and is there a way to change this?

VincentVanclef avatar Aug 30 '21 11:08 VincentVanclef

and is there a way to change this?

yes, you can change methodAliases inner functions return values for this in base route-names template https://github.com/acacode/swagger-typescript-api/blob/master/templates/base/route-name.eta

alexander-mkv avatar Sep 14 '21 11:09 alexander-mkv

methodAliases

Url is broken, working url: https://github.com/acacode/swagger-typescript-api/blob/next/templates/base/route-name.ejs

bekazandukeli avatar Aug 24 '23 17:08 bekazandukeli