Project

General

Profile

Actions

Bug #11156

closed

Org create API returns different wrapping and attributes

Added by Stephen Herr almost 9 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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
}


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #10356: POST and PUT should use RABL templates for the response.ClosedAlon Goldboim05/04/2015Actions
Actions

Also available in: Atom PDF