Project

General

Profile

Actions

Feature #3693

closed

API v2 - accept GET json format of object in PUT/POST requests to add/remove has_many associations

Added by Joseph Magen almost 11 years ago. Updated over 6 years ago.

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

Description

Currently we have to use _ids= methods to add/remove relationships. {
"id": 42,
"name": "CentOS",
"architecture_ids": [1,2]
}
This is what we want {
"id": 42,
"name": "CentOS",
"architectures": [ {
"id": 1,
"name": "i386"
}, {
"id": 2,
"name": "x86_64"
}
]
}


Related issues 1 (1 open0 closed)

Related to Foreman - Bug #4571: "Domain (..) expected, got ActiveSupport::HashWithIndifferentAccess(..)" when setting associations with wrapped objectNew03/06/2014Actions
Actions #1

Updated by Joseph Magen almost 11 years ago

  • Project changed from Katello to Foreman
  • Category set to API
  • Status changed from Assigned to Ready For Testing
Actions #2

Updated by Dominic Cleal almost 11 years ago

  • Target version set to 1.10.0
  • Translation missing: en.field_release set to 2
Actions #3

Updated by Dominic Cleal almost 11 years ago

  • Target version changed from 1.10.0 to 1.9.3
Actions #4

Updated by Anonymous almost 11 years ago

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

Updated by Dominic Cleal over 10 years ago

  • Related to Bug #4571: "Domain (..) expected, got ActiveSupport::HashWithIndifferentAccess(..)" when setting associations with wrapped object added
Actions

Also available in: Atom PDF