Project

General

Profile

Actions

Bug #20219

closed

organization_id should be a top level attribute in the API

Added by Andrew Kofink over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
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
},
...
}

Actions

Also available in: Atom PDF