Support REST convention with pluralized entities in mode with IgnoreOperationId=true #121
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem is in confusing method names, generated for routes with parameters (due to name collisions).
For example, following provider methods are generated for given routes:
/areas -> GetAreas(...)
/areas/{id} -> GetAreas1(...)
Desired behavior:
/areas -> GetAreas(...)
/areas/{id} -> GetArea(...)
The solution is to singularize route segments, followed by parameters.
Existing unit tests are fixed, integration tests are remained broken (issues not related to PR in both cases). New tests are not created, because of existing issues and because I did not find simple way to test my changes. I am ready to elaborate on tests in case of principal approval of idea.
As for new branch openapi and nuget beta I was not able to test it, because it does not work for me (at least in LinqPad). However I noticed, that logic, related to my changes, basically remained the same.
Thanks.