Examples

GET /katello/api/files/compare
200
{
  "total": 2,
  "subtotal": 2,
  "selectable": 2,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": "name",
    "order": "asc"
  },
  "results": [
    {
      "id": 980190962,
      "name": "one-1.1.gem",
      "path": "one-1.1.gem",
      "uuid": "123983-123812-123812-2131",
      "pulp_id": "123983-123812-123812-2131",
      "checksum": null,
      "comparison": [
        840492357
      ]
    },
    {
      "id": 298486374,
      "name": "two",
      "path": "/tmp/two",
      "uuid": "fjd89-ad8d8-sdkas-adjja",
      "pulp_id": "fjd89-ad8d8-sdkas-adjja",
      "checksum": null,
      "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