-
Notifications
You must be signed in to change notification settings - Fork 610
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
Merge groups in documentation #535
Comments
Can you put here the tag @group for both cases (text mode)? |
@dozieogbo are you sure both tags are identical? No extraneous spaces? |
Maybe we can put something like "trim" when the group name is get. |
@shalvah I just confirmed and the names are identical. See for yourself. Let me know if you see what I am missing.
AND
|
I noticed the same issue - the uniqueness is not just the group name, but the name and description. If you set the description to be the same for both, they will be merged into the same group. |
But how do you specify the group description and method description differently? |
If the methods are in the same controller, just having the group definition at the head of the controller is enough to group all methods from that controller together.
|
Yeah. That's the point. I am grouping controller methods by entity but I would like to group routes together the REST way. I have a getByFarm in CropController with route /farms/id/crops and I want to add the getByFarm under the /farms/** route group. Asides this use case, everything else route-wise works fine. |
I'll look into this. You shouldn't be able to specify a group description on a method. Should be the route's title instead. Can you try moving the group tag below the method description to see what happens? |
Oh. So I tried this and it worked
|
The grouping works and the route description works too. |
Fixed in #556 (you won't have to write the group description again). |
For some reason, when I overwrite a group on method, it doesn't merge it with other group with the same name.
Is that how it's supposed to work?
The text was updated successfully, but these errors were encountered: