Project

General

Profile

Actions

Bug #19304

closed

As per API v2 documentation for <server_url>/apidoc/v2/packages.html | GET /katello/api/compare is not working

Added by John Mitsch almost 7 years ago. Updated over 5 years ago.

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

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://&lt;mybox&gt;.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://&lt;server_url&gt;/katello/api/packages

It will list packages

3. Open https://&lt;server_url&gt;/katello/api/compare

It will not list packages but as per documentation - https://&lt;server_url&gt;/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:


Related issues 1 (0 open1 closed)

Copied to Katello - Bug #24498: GET /katello/api/compare is not working for all content typesClosedStephen BenjaminActions
Actions #1

Updated by John Mitsch almost 7 years ago

  • Subject changed from As per API v2 documentation for <server_url>/apidoc/v2/packages.html | GET /katello/api/compare is not working to As per API v2 documentation for <server_url>/apidoc/v2/packages.html | GET /katello/api/compare is not working
  • Assignee set to John Mitsch
Actions #2

Updated by John Mitsch almost 7 years ago

  • Target version set to 181
Actions #3

Updated by John Mitsch almost 7 years ago

  • Category changed from 111 to API
  • translation missing: en.field_release set to 228
Actions #4

Updated by Brad Buckingham almost 7 years ago

  • Target version changed from 181 to 160
Actions #5

Updated by Justin Sherrill almost 7 years ago

  • translation missing: en.field_release changed from 228 to 114
Actions #6

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7043 added
Actions #7

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #8

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release deleted (114)
Actions #9

Updated by Justin Sherrill over 6 years ago

  • translation missing: en.field_release set to 284
Actions #10

Updated by Stephen Benjamin over 5 years ago

  • Copied to Bug #24498: GET /katello/api/compare is not working for all content types added
Actions

Also available in: Atom PDF