I have a REST API that has many entities with the same attribute (the attribute is "name"), i wanna create a generic/abstract method (endpoint) that can be used by the controllers that need this. I think i would pass the entity that i want and the rest would be the same. You guys have any tip for me on how i do that?