This API is prepared for updating the rtt_tested_architectures key in /rest_api/v1/composes/ API.

Documents & examples

Method: GET

URL: /rest_api/v1/compose-tree-rtt-tests/

Query params:

  • arch (string)
  • compose (string)
  • test_result (string)
  • variant (string)
  • ordering (string) Comma separated list of fields for ordering results.
    • To sort by a field in descending order, prefix its name with minus (e.g. -name).
    • Use double underscores for nested field names (e.g. parent__child for {"parent": {"child": ...}}).

Following filters can be used to show only specific fields. This can make response time faster. Format is list or single value (JSON: {"fields": ["a","b"]} or {"fields": "a"}, in URL: ?fields=a&fields=b).

  • fields (list | string) Fields to display (other fields will be hidden).
  • exclude_fields: (list | string) Fields NOT to display (overrules fields).

Response: a paged list of following objects

{
    "arch (read-only)": "string", 
    "compose (read-only)": "string", 
    "test_result": "ComposeAcceptanceTestingState.name", 
    "variant (read-only)": "Variant.variant_uid"
}

Method: GET

URL: /rest_api/v1/compose-tree-rtt-tests/{compose_id}/{variant_uid}/{arch}/

Response:

{
    "arch (read-only)": "string", 
    "compose (read-only)": "string", 
    "test_result": "ComposeAcceptanceTestingState.name", 
    "variant (read-only)": "Variant.variant_uid"
}

Method: PUT, PATCH

URL: /rest_api/v1/compose-tree-rtt-tests/{compose_id}/{variant_uid}/{arch}/

Data:

{
    "test_result": "ComposeAcceptanceTestingState.name"
}

Response:

{
    "arch (read-only)": "string", 
    "compose (read-only)": "string", 
    "test_result": "ComposeAcceptanceTestingState.name", 
    "variant (read-only)": "Variant.variant_uid"
}

It is possible to update multiple objects in one request. Use the PUT or PATCH method with the same url as for listing/creating objects. The request body should contain an object, where keys are identifiers of objects to be modified and their values use the same format as normal update.

Browsable GET

GET /rest_api/v1/compose-tree-rtt-tests/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 58506,
    "next": "https://pdc.fedoraproject.org/rest_api/v1/compose-tree-rtt-tests/?page=2",
    "previous": null,
    "results": [
        {
            "compose": "Fedora-Rawhide-20170418.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170425.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170415.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170414.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170421.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170424.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "FACD-Rawhide-20170406.n.6",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170413.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170416.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170417.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170419.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170420.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170422.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170423.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "FACD-Rawhide-20170406.n.4",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "FACD-Rawhide-20170406.n.5",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "FACD-Rawhide-20170406.n.7",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "FACD-Rawhide-20170406.n.8",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170504.n.1",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        },
        {
            "compose": "Fedora-Rawhide-20170502.n.0",
            "variant": "Atomic",
            "arch": "ppc64le",
            "test_result": "untested"
        }
    ]
}