Bug #20219
organization_id should be a top level attribute in the API
Description
This is true for any many-to-one relationship to organization (content_views, repositories, sync_plans, etc.)
GET https://katello.example.com/katello/api/v2/content_views/1
Current:
{
...,
"organization": {
"name": "Default Organization",
"label": "Default_Organization",
"id": 1
},
...
}
Expected:
{
...,
"organization_id": 1,
"organization": {
"name": "Default Organization",
"label": "Default_Organization",
"id": 1
},
...
}
Associated revisions
History
#1
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6852 added
#2
Updated by Andrew Kofink almost 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|f8008f09aa7cc1f2d05d268e2fa58b0ab7564a72.
#3
Updated by Justin Sherrill almost 5 years ago
- Legacy Backlogs Release (now unused) set to 250
Fixes #20219: Give org_id in API response