Bug #11156
closedOrg create API returns different wrapping and attributes
Description
On 07/16/2015 08:47 AM, Joseph Magen wrote:
https://github.com/theforeman/foreman/commit/d575926a689fd6abd6f26ee2823ce95eef07dd38
Fixes #10356 - changed the POST/PUT RABL template to be the same as
the GET template
You're right. This should have been mentioned as breaking version. I
would bring it up on the foreman-devel channel.
Hi guys,
I believe that the change above broke backwards compatibility in the
API. I believe you should revert the change, and please don't break
backwards compatibility unless it's accompanied with an API version
bump. Thanks!
-Stephen
POST https://server1/katello/api/v2/organizations/
with {"name":"api_name"}
returns {
"organization": {
"id": 126,
"name": "api_name",
"title": "api_name",
"label": "api_name",
"description": null,
"created_at": "2015-06-24T18:50:57Z",
"updated_at": "2015-06-24T18:50:57Z"
}
}POST
https://server2/katello/api/v2/organizations/
with {"name":"api_name"}
returns {
"ancestry": null,
"apply_info_task_id": null,
"created_at": "2015-06-24T18:52:28Z",
"default_info": {
"system": [],
"distributor": []
},
"description": null,
"id": 3,
"ignore_types": [],
"katello_default": true,
"label": "api_name",
"name": "api_name",
"title": "api_name",
"updated_at": "2015-06-24T18:52:28Z",
"service_levels": [],
"service_level": null
}