Actions
Bug #27575
closedSubscription index API says the organization_id is required, while it is not
Difficulty:
trivial
Triaged:
Yes
Pull request:
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.
Actions