Bug #19304
closedAs per API v2 documentation for <server_url>/apidoc/v2/packages.html | GET /katello/api/compare is not working
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1442397
There are two issues here:
- The documentation is incorrect for the compare endpoint, /katello/api/compare does not exist
- There is only a compare endpoint for errata (katello/api/v2/errata/compare), I believe there should be one for packages. The errata endpoint is not listed in the documentation
i.e. here is a working command
curl -X GET -k -u admin:changeme -H "Content-Type: application/json" -d '{"content_view_version_ids": [1,3]}' https://<mybox>.com/katello/api/v2/errata/compare
Description of problem:
As per API doc <server_url>/apidoc/v2/packages.html
Issuing a HTTP GET request to <server_url>/katello/api/compare should list all the packages similar to <server_url>/katello/api/packages but it seems a bug.
Version-Release number of selected component (if applicable):
How reproducible:
100%
Steps to Reproduce:
1. Open katello WebUI and Login,
2. Open https://<server_url>/katello/api/packages
It will list packages
3. Open https://<server_url>/katello/api/compare
It will not list packages but as per documentation - https://<server_url>/apidoc/v2/packages.html it should list.
Actual results:
API to get a comparison of packages doesn't work
Expected results:
It should list packages and also work with parameters available with this API call.
Additional info: