Project

General

Profile

Feature #3763

Ability for engine/plugin to extend RABL responses

Added by Joseph Magen over 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Related issues

Related to Foreman - Bug #3853: allow rabl overrides to taxonomies_controllerClosed2013-12-11
Related to Foreman - Feature #9375: Find a way for plugins to easily override the behavior of taxonomies controller actionsRejected2015-02-13
Related to OpenSCAP - Bug #16490: API lacks ability to modify/specify hostgroup openscap capsule via API or hammer cliClosed2016-09-08
Related to Docker - Bug #12116: `hammer compute-resource create -h` do not mention DockerNew2015-10-08
Related to Katello - Bug #16812: Replace controller extensions with apipie extensionsAssigned2016-10-05
Related to Foreman - Feature #16630: Need a way to extend existing apipie specificationClosed2016-09-21
Related to Foreman Remote Execution - Bug #20713: REST API /api/hosts/:id/interfaces doesn't show REX attributeDuplicate2017-08-23
Related to Foreman - Bug #22080: uninitialized constant ActionView::Template::Handlers::RablClosed2017-12-27
Blocks Katello - Tracker #8161: Host UnificationRejected

Blocks Katello - Refactor #9378: Need to handle the organization controllerRejected
Blocks Foreman Remote Execution - Feature #20689: Remote execution interface not accessible by APIClosed

Associated revisions

Revision d73b9198 (diff)
Added by Timo Goebel about 5 years ago

fixes #3763 - extend rabl templates

Revision 070af490 (diff)
Added by Tomer Brisker about 5 years ago

Refs #3763 - fix indentation in rabl_test.rb

History

#2 Updated by Dominic Cleal about 9 years ago

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

#3 Updated by Joseph Magen almost 9 years ago

  • Target version set to 1.8.3

#4 Updated by Joseph Magen almost 9 years ago

  • Target version deleted (1.8.3)

#5 Updated by Stephen Benjamin about 8 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 Plugin integration
  • Assignee deleted (Joseph Magen)

#6 Updated by Stephen Benjamin about 8 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 about 8 years ago

Stephen: I like this approach a lot.

#8 Updated by Stephen Benjamin about 8 years ago

#9 Updated by David Davis about 8 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 about 8 years ago

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

#11 Updated by Ori Rabin about 7 years ago

  • Status changed from Assigned to New

#12 Updated by Dominic Cleal over 6 years ago

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

#13 Updated by Dominic Cleal over 6 years ago

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

#14 Updated by Marek Hulán over 6 years 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 6 years ago

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

#16 Updated by Marek Hulán over 6 years ago

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

#17 Updated by Ivan Necas over 6 years ago

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

#18 Updated by Ivan Necas over 6 years ago

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

#19 Updated by Ivan Necas over 6 years 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 over 5 years 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 over 5 years ago

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

#22 Updated by Timo Goebel over 5 years ago

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

#23 Updated by The Foreman Bot over 5 years 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 about 5 years ago

  • Legacy Backlogs Release (now unused) set to 296

#25 Updated by Timo Goebel about 5 years ago

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

#26 Updated by Anonymous about 5 years ago

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

Also available in: Atom PDF