Joseph (and others),
Any thoughts on the proposed solution in my issue?
Katello engine is extending foreman organization model (adding new attributes such as "label"). Hitting the /katello/api/organizations needs to return those additional fields.
Should the taxonomy code already be returning this? Perhaps there's a namespace issue that's requiring me to do this override.
···
----- Forwarded Message ----- > From: noreply@theforeman.org > Sent: Wednesday, December 11, 2013 8:14:41 AM > Subject: [Foreman - Bug #3853] (New) allow rabl overrides to taxonomies_controller > > Issue #3853 has been reported by Thomas McKay. > > ---------------------------------------- > Bug #3853: allow rabl overrides to taxonomies_controller > http://projects.theforeman.org/issues/3853 > > * Author: Thomas McKay > * Status: New > * Priority: Normal > * Assignee: > * Category: API > * Target version: > * Difficulty: > ---------------------------------------- > > When an engine extends a core model, they may wish to override the rabl json > to include their own fields. > > For example, the index method in > app/controllers/api/v2/taxonomies_controller.rb could be changed to > >> def index(rabl='api/v2/taxonomies/index') > ... > render rabl > end >> > > > > -- > You have received this notification because you have either subscribed to it, > or are involved in it. > To change your notification preferences, please click here: > http://projects.theforeman.org/my/account >