Feature #3763

Ability for engine/plugin to extend RABL responses

Added by Joseph Magen over 4 years ago. Updated 8 days ago.

Status:Closed
Priority:Normal
Assignee:Timo Goebel
Category:Plugins-Engines
Target version:1.17.0
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:https://github.com/theforeman/foreman/pull/5048

Related issues

Related to Foreman - Bug #3853: allow rabl overrides to taxonomies_controller Closed 12/11/2013
Related to Foreman - Feature #9375: Find a way for plugins to easily override the behavior of... Rejected 02/13/2015
Related to OpenSCAP - Bug #16490: API lacks ability to modify/specify hostgroup openscap ca... Closed 09/08/2016
Related to Docker - Bug #12116: `hammer compute-resource create -h` do not mention Docker New 10/08/2015
Related to Katello - Bug #16812: Replace controller extensions with apipie extensions Assigned 10/05/2016
Related to Foreman - Feature #16630: Need a way to extend existing apipie specification Closed 09/21/2016
Related to Foreman Remote Execution - Bug #20713: REST API /api/hosts/:id/interfaces doesn't show REX attri... Duplicate 08/23/2017
Related to Foreman - Bug #22080: uninitialized constant ActionView::Template::Handlers::Rabl Closed 12/27/2017
Blocks Katello - Tracker #8161: Host Unification New 10/29/2014
Blocks Katello - Refactor #9378: Need to handle the organization controller New 02/13/2015
Blocks Foreman Remote Execution - Feature #20689: Remote execution interface not accessible by API New 08/22/2017

Associated revisions

Revision d73b9198
Added by Timo Goebel 7 months ago

fixes #3763 - extend rabl templates

Revision 070af490
Added by Tomer Brisker 7 months ago

Refs #3763 - fix indentation in rabl_test.rb

History

#2 Updated by Dominic Cleal over 4 years ago

  • Related to Bug #3853: allow rabl overrides to taxonomies_controller added

#3 Updated by Joseph Magen about 4 years ago

  • Target version set to 1.8.3

#4 Updated by Joseph Magen about 4 years ago

  • Target version deleted (1.8.3)

#5 Updated by Stephen Benjamin over 3 years ago

  • Subject changed from ability for engine/plugin to extend rabl api view/response to Ability for engine/plugin to extend API documentation and RABL responses
  • Category changed from API to Plugins-Engines
  • Assignee deleted (Joseph Magen)

#6 Updated by Stephen Benjamin over 3 years ago

We really want to have such a feature for Katello. And same for Salt. This is especially important for hosts and hostgroups.

I have a working example...

I'd like to add something like this to Foreman:
https://github.com/stbenjam/foreman/commit/ffc9009a99aa63e2b402ae5f7e8c95f61c7effb5

And the corresponding plugin extensions might look something like this:
https://github.com/stbenjam/katello/commit/6d5c1a96664e1b3c1b25a7ba16f024c82f413b8a

The idea probably needs some work, so we can get the dynamic methods (_id -> _name) in the attributes as well, and somehow get hammer to dynamically fetch them in the details output.

#7 Updated by Ivan Necas over 3 years ago

Stephen: I like this approach a lot.

#8 Updated by Stephen Benjamin over 3 years ago

#9 Updated by David Davis over 3 years ago

  • Related to Feature #9375: Find a way for plugins to easily override the behavior of taxonomies controller actions added

#10 Updated by David Davis over 3 years ago

  • Blocks Refactor #9378: Need to handle the organization controller added

#11 Updated by Ori Rabin over 2 years ago

  • Status changed from Assigned to New

#12 Updated by Dominic Cleal over 1 year ago

  • Duplicated by Feature #16630: Need a way to extend existing apipie specification added

#13 Updated by Dominic Cleal over 1 year ago

https://github.com/Apipie/apipie-rails/issues/330 describes extensions to API docs.

#14 Updated by Marek Hulán over 1 year ago

  • Related to Bug #16490: API lacks ability to modify/specify hostgroup openscap capsule via API or hammer cli added

#15 Updated by Marek Hulán over 1 year ago

  • Related to Bug #12116: `hammer compute-resource create -h` do not mention Docker added

#16 Updated by Marek Hulán over 1 year ago

  • Related to Bug #16812: Replace controller extensions with apipie extensions added

#17 Updated by Ivan Necas over 1 year ago

  • Duplicated by deleted (Feature #16630: Need a way to extend existing apipie specification)

#18 Updated by Ivan Necas over 1 year ago

  • Related to Feature #16630: Need a way to extend existing apipie specification added

#19 Updated by Ivan Necas over 1 year ago

I think the api docs and rabl extendability are two separate issues, and therefore http://projects.theforeman.org/issues/16630 doesn't duplicate the whole issue here. Alternatively, I would suggest limiting the scope of this issue to RABL only

#20 Updated by Ivan Necas 10 months ago

  • Subject changed from Ability for engine/plugin to extend API documentation and RABL responses to Ability for engine/plugin to extend RABL responses

#21 Updated by Ivan Necas 10 months ago

  • Blocks Feature #20689: Remote execution interface not accessible by API added

#22 Updated by Timo Goebel 8 months ago

  • Related to Bug #20713: REST API /api/hosts/:id/interfaces doesn't show REX attribute added

#23 Updated by The Foreman Bot 8 months ago

  • Assignee set to Timo Goebel
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5048 added

#24 Updated by Shimon Shtein 7 months ago

  • Legacy Backlogs Release (now unused) set to 296

#25 Updated by Timo Goebel 7 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#26 Updated by Michael Moll 7 months ago

  • Related to Bug #22080: uninitialized constant ActionView::Template::Handlers::Rabl added

Also available in: Atom PDF