Examples

GET /katello/api/package_groups/compare
200
{
  "total": 2,
  "subtotal": 2,
  "selectable": 2,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": "name",
    "order": "asc"
  },
  "results": [
    {
      "id": 441261589,
      "name": "Katello Server Development",
      "pulp_id": "4f9eea2a-a124-497e-8492-828b6d938aaa",
      "uuid": "4f9eea2a-a124-497e-8492-828b6d938aaa",
      "description": "fun packages for servers",
      "repository": {
        "id": 367202338,
        "name": "Fedora 17 x86_64",
        "product": {
          "id": 785257261,
          "name": "Fedora"
        }
      },
      "comparison": [
        840492357
      ]
    },
    {
      "id": 283985760,
      "name": "mammals",
      "pulp_id": "4f9eea2a-a124-497e-8492-828b64444abc",
      "uuid": "4f9eea2a-a124-497e-8492-828b64444abc",
      "description": "all kinds of mammals",
      "repository": {
        "id": 367202338,
        "name": "Fedora 17 x86_64",
        "product": {
          "id": 785257261,
          "name": "Fedora"
        }
      },
      "comparison": [
        840492357
      ]
    }
  ]
}

Params

Param name Description
content_view_version_ids
optional

content view versions to compare

Validations:

  • Must be an array of any type

repository_id
optional

Library repository id to restrict comparisons to

Validations:

  • Must be a number.

restrict_comparison
optional

Return same, different or all results

Validations:

  • String