Project

General

Profile

Bug #13950

POST /katello/api/organizations does not return any data

Added by Brad Buckingham over 4 years ago. Updated about 2 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1312767
Description of problem:
POST /katello/api/organizations request does not return data.

Request:
https://my_server/katello/api/organizations {"name":"Test_Org_011"}

Response: {}

For example, when I create similar request for architecture entity, I get some data:
Request
POST https://my_server/api/architectures {"architecture":{"name":"Test_Arch_011"}}

Response: {"created_at":"2016-02-29 08:54:53 UTC","updated_at":"2016-02-29 08:54:53 UTC","name":"Test_Arch_011","id":28,"operatingsystems":[],"images":[]}

Or in older versions (6.1.x) we have next output for organization entity:
Request:
https://my_server/katello/api/organizations {"name":"Test_Org_011"}

Response: {"ancestry":null,"apply_info_task_id":null,"created_at":"2016-02-29T09:06:28Z","description":null,"id":812,"ignore_types":[],"katello_default":true,"label":"Test_Org_011","name":"Test_Org_011","title":"Test_Org_011","updated_at":"2016-02-29T09:06:28Z","service_levels":[],"service_level":null}

Version-Release number of selected component (if applicable):
6.2.0 BETA

How reproducible:
Always

Steps to Reproduce:
1. Try to create new organization entity

Actual results:
Empty payload returned from the server in response

Expected results:
All necessary data is present in response

Additional info:

Associated revisions

Revision fe757093 (diff)
Added by Brad Buckingham over 4 years ago

fixes #13950 - update org create api to return org object

Small change so that when a new organization is created via the API,
it is returned to the user in the response. Prior to this change, the user
would get an empty object ({}).

Revision 00dc16e8
Added by Brad Buckingham over 4 years ago

Merge pull request #5821 from bbuckingham/issue-13950

fixes #13950 - update org create api to return org object

History

#1 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Brad Buckingham
  • Pull request https://github.com/Katello/katello/pull/5821 added

#2 Updated by Brad Buckingham over 4 years ago

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

#3 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 86

Also available in: Atom PDF