Skip to content
New issue

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

Plural routes lead to unwanted model names #112

Closed
andys8 opened this issue Jun 13, 2018 · 0 comments
Closed

Plural routes lead to unwanted model names #112

andys8 opened this issue Jun 13, 2018 · 0 comments

Comments

@andys8
Copy link
Contributor

andys8 commented Jun 13, 2018

In general rest routes can be singular or plural: /user or /users. I have seen both in the past.
If using a plural route, it will lead to strange names with feathers-swagger: The single entity is called "users" and multiple entities are called "users list". This is awkward, but only a name of a definition in the swagger file. But it get's you generate code with swagger-codegen or comparable libraries. The names are used as they are and your User type will be a Users.

I think removing some the plural "s" on occurrence would be brittle. Is there a way to configure the name/tag instead of using the path? If not, it would be awesome to have the ability. Or there is perhaps a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant