GET /katello/api/srpms
List srpms

Examples

GET /katello/api/srpms
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": "2022-11-08 19:09:32 UTC",
      "version": "1.0",
      "arch": "src",
      "release": "1.el7",
      "epoch": "0",
      "checksum": null,
      "summary": null,
      "nvra": "one-1.0-1.el7.src"
    },
    {
      "id": 1046165992,
      "pulp_id": "one-uuid-two",
      "name": "one",
      "filename": "one-1.2.src.rpm",
      "created_at": "2022-11-08 19:09:32 UTC",
      "version": "1.0",
      "arch": "src",
      "release": "2.el7",
      "epoch": "0",
      "checksum": null,
      "summary": null,
      "nvra": "one-1.0-2.el7.src"
    },
    {
      "id": 298486374,
      "pulp_id": "two-uuid",
      "name": "two",
      "filename": "two-2.1.src.rpm",
      "created_at": "2022-11-08 19:09:32 UTC",
      "version": "1.0",
      "arch": "src",
      "release": "1.el7",
      "epoch": "0",
      "checksum": null,
      "summary": null,
      "nvra": "two-1.0-1.el7.src"
    }
  ]
}

Params

Param name Description
organization_id
optional

Organization identifier

Validations:

  • Must be a number.

repository_id
optional

Repository identifier

Validations:

  • Must be a number.

environment_id
optional

Environment identifier

Validations:

  • Must be a number.

content_view_version_id
optional

Content View Version identifier

Validations:

  • Must be a number.

search
optional

Search string

Validations:

  • String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

order
optional

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
optional

Whether or not to show all results

Validations:

  • Must be one of: true, false, 1, 0.

sort_by
optional

Field to sort the results on

Validations:

  • String

sort_order
optional

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String


GET /katello/api/srpms/:id
Show SRPM details

GET /katello/api/repositories/:repository_id/srpms/:id
Show SRPM details

Params

Param name Description
repository_id
optional

repository identifier

Validations:

  • Must be a number.

organization_id
optional

organization identifier

Validations:

  • Must be a number.

id
required

SRPM details identifier

Validations:

  • String


GET /katello/api/srpms/compare
List srpms

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": "2022-11-08 19:09:32 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": "2022-11-08 19:09:32 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": "2022-11-08 19:09:32 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