-
-
Notifications
You must be signed in to change notification settings - Fork 158
PluralizedTypeName option when adding resource doesn't work for routing #786
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
Comments
The issue might be that the following code doesn't take into account pluralized type names when generating template for controller - but I'm not really sure since I'm not very familiar with the whole codebase
|
Or would it help to put According to documentation pluralizedTypeName is not considered, I don't know why. Needs some investigation. |
I looked into this, you're right @vdaras: the The default routing convention aims to create a route template for every controller that matches the resource name as in the json payload, i.e. the Parallel to that, there is three ways to configure the resource name, in order of priority:
This means that in these 3 ways of configuring, the effects should ripple through to the URL accordingly. But right now configuration through (1) is currently not accessible by the routing convention because |
Description
Explicitly setting a pluralized type name for a resource doesn't work for routing purposes. Example:
Controller is defined as follows
But when trying to call the API it seems the respective controller is still registered at /api/v1/todoResources instead of /ap1/v1/todos
Environment
The text was updated successfully, but these errors were encountered: