Feature #9375
closed
Find a way for plugins to easily override the behavior of taxonomies controller actions
Added by David Davis almost 10 years ago.
Updated almost 10 years ago.
Category:
Plugin integration
|
Description
Suppose I add an attribute to a foreman object (ie Host). Then I want /api/v2/hosts/:id/update to be able to set that attribute. I don't know of a good way to do that. In Katello, we're currently removing the old foreman route in a routes file, extending the controller with our own hosts controller, and then adding a new route to replace the old one. It's ugly and not a good solution.
- Related to Bug #3853: allow rabl overrides to taxonomies_controller added
- Related to Feature #3763: Ability for engine/plugin to extend RABL responses added
- Related to Bug #6647: Foreman organization API destroy routes (DELETE /api/v2/organizations/1 and DELETE /api/v1/organizations/1) are still accessible added
- Related to Bug #6708: Have the /api/v2/organization routes point to our Organization controller in Katello added
- Subject changed from Find a way for plugins to easily override the behavior of a controller action to Find a way for plugins to easily override the behavior of taxonomies controller actions
- Status changed from New to Closed
I believe this was actually a special case with the taxonomies controller but I don't specifically recall what the problem was. Will reopen if I think of it.
- Status changed from Closed to Rejected
Also available in: Atom
PDF