@PLUGIN@ - /changes/ REST API

This page describes the ‘/changes/’ REST endpoints that are added by the @PLUGIN@ plugin.

Please also take note of the general information on the REST API.

@PLUGIN@ Endpoints

Get CRD

‘GET /changes/{change-id}/revisions/{revision-id}/crd’

Gets the zuul CRD for a change. Please refer to the general changes rest api for additional info on this request.

Request

  GET /changes/myProject~master~I8473b95934b5732ac55d26311a706c9c2bde9940/revisions/674ac754f91e64a0efb8087e59a176484bd534d1/crd HTTP/1.0

As response a CrdInfo entity is returned that describes the cross-repository dependencies.

Response

  HTTP/1.1 200 OK
  Content-Disposition: attachment
  Content-Type: application/json; charset=UTF-8

  )]}'
  {
    "depends_on": [
      "Ic79ed94daa9b58527139aadba1b0d59d1f54754b",
      "I66853bf0c18e60f8de14d44dfb7c2ca1c3793111"
    ],
    "needed_by": [
      "I66853bf0c18e60f8de14d44dfb7c2ca1c379311d"
    ],
    "cycle": false
  }

JSON Entities

CrdInfo

The CrdInfo entity shows zuul dependencies on a patch set.

Field NameDescription
depends_onList of changes that this change depends on
needed_byList of changes that is dependent on this change
cycleWhether this change is in a circular dependency chain

SEE ALSO

GERRIT

Part of Gerrit Code Review