Project

General

Profile

Feature #4218

V2 API: Add support for PUT of array of json relationship objects

Added by David Davis over 6 years ago. Updated 9 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Option #3 I created a before_filter in api/v2/base_controller.rb

https://github.com/isratrade/foreman/blob/inherit_loc/app/controllers/api/v2/base_controller.rb#L11

Basically, I manipulated the input to convert from an array of JSON objects to get attribute :column_names_ids = [1,2,3,4] which is what Rails likes in the standard `update_attributes` method
Note, column_names_names = ["name1", "name2"] also works.

History

#1 Updated by Eric Helms almost 6 years ago

  • Category set to API
  • Triaged set to Yes

#2 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 114

#3 Updated by John Mitsch 9 months ago

  • Target version deleted (Katello Backlog)
  • Status changed from New to Rejected

Thanks for reporting this issue. This issue was created over 4 years ago and hasn't seen an update in 1 year. We are closing this in an effort to keep a realistic backlog. Please open up a new issue that includes a link to this issue if you feel this still needs to be addressed. We can then triage the new issue and reassess.

Also available in: Atom PDF