Project

General

Profile

Feature #3763

Ability for engine/plugin to extend RABL responses

Added by Joseph Magen almost 5 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugins-Engines
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

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 UnificationNew2014-10-29

Blocks Katello - Refactor #9378: Need to handle the organization controllerNew2015-02-13
Blocks Foreman Remote Execution - Feature #20689: Remote execution interface not accessible by APINew2017-08-22

Associated revisions

Revision d73b9198 (diff)
Added by Timo Goebel 10 months ago

fixes #3763 - extend rabl templates

Revision 070af490 (diff)
Added by Tomer Brisker 10 months ago

Refs #3763 - fix indentation in rabl_test.rb

History

#2 Updated by Dominic Cleal almost 5 years ago

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

#3 Updated by Joseph Magen over 4 years ago

  • Target version set to 1.8.3

#4 Updated by Joseph Magen over 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 almost 2 years ago

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

#13 Updated by Dominic Cleal almost 2 years ago

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

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

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

#16 Updated by Marek Hulán almost 2 years ago

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

#17 Updated by Ivan Necas almost 2 years ago

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

#18 Updated by Ivan Necas almost 2 years ago

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

#19 Updated by Ivan Necas almost 2 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 about 1 year 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 about 1 year ago

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

#22 Updated by Timo Goebel 11 months ago

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

#23 Updated by The Foreman Bot 11 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 10 months ago

  • Legacy Backlogs Release (now unused) set to 296

#25 Updated by Timo Goebel 10 months ago

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

#26 Updated by Michael Moll 10 months ago

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

Also available in: Atom PDF