Bug #39351
closedAPI endpoint GET /api/host_packages/installed_packages in apidoc is wrong
Description
At ${SATELLITE}/apidoc/v2/host_packages.en.html I found the endpoint /api/host_packages/installed_packages. But the endpoint does not exist on my Satellite 6.18.
How reproducible:
{"status":404,"error":"Not Found"}
HTTP 404
Is this issue a regression from an earlier version:
curl -sS -G -k --url "${SATELLITE}/api/host_packages/installed_packages" -u "${SATELLITE_USER}:${SATELLITE_PASSWORD}" -H "Accept: application/json" --data-urlencode "per_page=10" --data-urlencode "page=1" -w "\nHTTP %{http_code}"
It exists in Satellite 6.17 as well.
Steps to Reproduce:
Query the endpoint
Actual behavior:
Returns:
{"status":404,"error":"Not Found"}
HTTP 404
Expected behavior:
Returns a list of installed packages.
Business Impact / Additional info:
Not useable as API endpoint does not exist
Correct endpoint
The correct endpoint is: /api/hosts/host_packages/installed_packages
Please check and verify the documentation of the other endpoints in section host_packages as well
Updated by The Foreman Bot about 2 months ago
- Status changed from New to Ready For Testing
Updated by jnagare-redhat nagare about 2 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|7689088f5adca89d8834c7c32de8169da16cd379.
Updated by Quinn James about 2 months ago
- Target version set to Katello 4.21.0
- Triaged changed from No to Yes
Updated by The Foreman Bot about 1 month ago
- Fixed in Releases Katello 4.21.0 added