Actions
Bug #26855
closedOrganization create API requires the org name twice
Description
According to https://theforeman.org/plugins/katello/3.11/api/apidoc/v2/organizations/create.html, to create an organization called "foo", you need to post the following to the server:
{"name":"foo","organization":{"name":"foo"}}
However, plain Foreman does not have this constraint (see https://theforeman.org/api/1.21/apidoc/v2/organizations/create.html) and accepts
{"organization":{"name":"foo"}}
Updated by Evgeni Golov over 5 years ago
This is "just" an issue in the published API doc (as used by apipie-bindings). The server accepts {"organization":{"name":"foo"}}
just fine.
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Evgeni Golov
- Pull request https://github.com/Katello/katello/pull/8122 added
Updated by Evgeni Golov over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|ade64aa07f45499cdb6889ee157362e65b1d6bc5.
Updated by John Mitsch over 5 years ago
- Target version set to Katello 3.13.0
- Triaged changed from No to Yes
Actions