Project

General

Profile

Actions

Bug #27575

closed

Subscription index API says the organization_id is required, while it is not

Added by Evgeni Golov over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
trivial
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

                        "apis": [
                            {
                                "api_url": "/katello/api/organizations/:organization_id/subscriptions",
                                "deprecated": null,
                                "http_method": "GET",
                                "short_description": "List organization subscriptions" 
                            },
                            {
                                "api_url": "/katello/api/activation_keys/:activation_key_id/subscriptions",
                                "deprecated": null,
                                "http_method": "GET",
                                "short_description": "List an activation key's subscriptions" 
                            },
                            {
                                "api_url": "/katello/api/subscriptions",
                                "deprecated": null,
                                "http_method": "GET",
                                "short_description": null
                            }
                        ],
…
                        "params": [
…
                            {
                                "allow_blank": false,
                                "allow_nil": false,
                                "description": "\n<p>Organization ID</p>\n",
                                "expected_type": "numeric",
                                "full_name": "organization_id",
                                "metadata": null,
                                "name": "organization_id",
                                "required": true,
                                "show": true,
                                "validations": [],
                                "validator": "Must be a number." 
                            },
…

When I want to hit the /katello/api/activation_keys/:activation_key_id/subscriptions route, there is no need to pass a Org id, because the AK will lead me to the right Org anyways.

The API controller will accept a request w/o the Org ID just fine and process it correctly.


Related issues 1 (1 open0 closed)

Related to Foreman - Tracker #27680: API bugs that need workarounds in foreman-ansible-modulesNew

Actions
Actions

Also available in: Atom PDF