Actions
Feature #3693
closedAPI v2 - accept GET json format of object in PUT/POST requests to add/remove has_many associations
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"
}
]
}
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
Updated by Dominic Cleal almost 11 years ago
- Target version set to 1.10.0
- Translation missing: en.field_release set to 2
Updated by Dominic Cleal almost 11 years ago
- Target version changed from 1.10.0 to 1.9.3
Updated by Anonymous almost 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset bbf64d9900262e42afaec6dd84934ae601c1d4f3.
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