Project

General

Profile

Actions

Bug #39351

closed

API endpoint GET /api/host_packages/installed_packages in apidoc is wrong

Added by jnagare-redhat nagare about 2 months ago. Updated about 1 month ago.

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

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

Actions #1

Updated by The Foreman Bot about 2 months ago

  • Status changed from New to Ready For Testing
Actions #2

Updated by jnagare-redhat nagare about 2 months ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Quinn James about 2 months ago

  • Target version set to Katello 4.21.0
  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases Katello 4.21.0 added
Actions

Also available in: Atom PDF