Project

General

Profile

Actions

Bug #20219

closed

organization_id should be a top level attribute in the API

Added by Andrew Kofink almost 7 years ago. Updated almost 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 #1

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6852 added
Actions #2

Updated by Andrew Kofink almost 7 years ago

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

Updated by Justin Sherrill almost 7 years ago

  • translation missing: en.field_release set to 250
Actions

Also available in: Atom PDF