Project

General

Profile

Bug #6696

API v2 - specify the key in which the parameters would be wrapped rather than passing model name

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

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

Description

specify :host as key rather than passing class name (Host::Base) which resolved to params[:base]


Related issues

Related to Foreman - Bug #5178: Users API requires parameters to be wrappedClosed2014-04-14
Related to Foreman - Bug #6991: API v2 - support unwrapped POST/PUT parameters even though it's not documentedNew2014-08-07
Has duplicate Foreman - Bug #6674: Can't create a host via the API because params aren't correctly wrappedDuplicate2014-07-17

Associated revisions

Revision a2610e98 (diff)
Added by Joseph Magen almost 5 years ago

fixes #6696 - API v2 - specify 'host' as the key in which parameters will be wrapped rather than Host::Base

Revision 54e18770 (diff)
Added by Joseph Magen almost 5 years ago

fixes #6696 - API v2 - specify 'host' as the key in which parameters will be wrapped rather than Host::Base

(cherry picked from commit a2610e980c66663db2a200cedceb2a0b53918f3a)

History

#1 Updated by Dominic Cleal almost 5 years ago

  • Related to Bug #5178: Users API requires parameters to be wrapped added

#2 Updated by The Foreman Bot almost 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1600 added
  • Pull request deleted ()

#3 Updated by Dominic Cleal almost 5 years ago

  • Has duplicate Bug #6674: Can't create a host via the API because params aren't correctly wrapped added

#4 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 10

#5 Updated by Bryan Kearney almost 5 years ago

  • Bugzilla link set to 1120800

#6 Updated by Dmitri Dolguikh almost 5 years ago

  • Target version changed from 1.8.0 to 1.7.5

#7 Updated by Dominic Cleal almost 5 years ago

  • Related to Bug #6991: API v2 - support unwrapped POST/PUT parameters even though it's not documented added

#8 Updated by Joseph Magen almost 5 years ago

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

Also available in: Atom PDF