Project

General

Profile

Bug #20219

organization_id should be a top level attribute in the API

Added by Andrew Kofink about 4 years ago. Updated about 3 years ago.

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

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

Revision f8008f09 (diff)
Added by Andrew Kofink about 4 years ago

Fixes #20219: Give org_id in API response

History

#1 Updated by The Foreman Bot about 4 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 about 4 years ago

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

#3 Updated by Justin Sherrill about 4 years ago

  • Legacy Backlogs Release (now unused) set to 250

Also available in: Atom PDF