Examples

GET /katello/api/srpms/compare
200
{
  "total": 3,
  "subtotal": 3,
  "selectable": 3,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "id": 980190962,
      "pulp_id": "one-uuid",
      "name": "one",
      "filename": "one-1.1.src.rpm",
      "created_at": "2024-02-22 18:22:29 UTC",
      "version": "1.0",
      "arch": "src",
      "release": "1.el7",
      "epoch": "0",
      "checksum": null,
      "summary": null,
      "nvra": "one-1.0-1.el7.src",
      "comparison": [
        840492357
      ]
    },
    {
      "id": 1046165992,
      "pulp_id": "one-uuid-two",
      "name": "one",
      "filename": "one-1.2.src.rpm",
      "created_at": "2024-02-22 18:22:29 UTC",
      "version": "1.0",
      "arch": "src",
      "release": "2.el7",
      "epoch": "0",
      "checksum": null,
      "summary": null,
      "nvra": "one-1.0-2.el7.src",
      "comparison": [
        840492357
      ]
    },
    {
      "id": 298486374,
      "pulp_id": "two-uuid",
      "name": "two",
      "filename": "two-2.1.src.rpm",
      "created_at": "2024-02-22 18:22:29 UTC",
      "version": "1.0",
      "arch": "src",
      "release": "1.el7",
      "epoch": "0",
      "checksum": null,
      "summary": null,
      "nvra": "two-1.0-1.el7.src",
      "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