This API endpoint allows finding all composes that contain the package (and include its version) for a given product_version and srpm_name

Documents & examples

This method allows listing all (compose, package) pairs for a given product_version and RPM name.

The ordering of composes is performed by the productmd library. It first compares compose date, then compose type (test < nightly < production) and lastly respin.

latest is optional parameter. If it is provided, and the value is True, it will return a single pair with the latest compose and its version of the packages.

to_dict is optional parameter, accepted values (True, 'true', 't', 'True', '1'), or (False, 'false', 'f', 'False', '0'). If it is provided, and the value is True, packages' format will be as a dict.

Method: GET

URL: /rest_api/v1/rpc/find-composes-by-product-version-rpm/{product_version_id}/{rpm_name}/

Query params:

  • excluded_compose_type
  • included_compose_type
  • latest
  • to_dict

Response:

[
    {
        "compose": string,
        "packages": [string]
    },
    ...
]

The list is sorted by compose: oldest first.

Browsable GET

GET /rest_api/v1/rpc/find-composes-by-product-version-rpm/%7Bproduct_version_id%7D/%7Brpm_name%7D/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

[]