Project

General

Profile

Actions

Feature #4218

closed

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

Added by David Davis about 10 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Yes
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.

Actions #1

Updated by Eric Helms almost 10 years ago

  • Category set to API
  • Triaged set to Yes
Actions #2

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 114
Actions #3

Updated by John Mitsch over 4 years ago

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

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.

Actions

Also available in: Atom PDF