Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page will give some sample  REST calls format to the Registry REST API. The all supported request URIs are given in Invoke REST API section.

Note
titleIMPORTANT
  • context - Context of REST API invocation. It is the by default "resource".
  • version - Since it is the initial version of the REST API , it is denoted as "1.0.0"
  • ip - IP address of the Governance Registry
  • port -  Port at which the Governance Registry is running.

Get All the Comments:

     Format   :  http://{ ip:port }/{context}/{version}/comments?path={resource path}&start={ start page}&size={ no of records}&user={ user name}

     Example :  http://localhost:9763/resource/1.0.0/comments?path=/_system/governance/sample.xml&start=1&size=3&user=john

Post a Comment:

      Format   :  http://{ip:port}/{context}/{version}/comment?path={resource path}&user={username}

      Header   : Content-Type = text/plain

      Example :  http://localhost:9763/resource/1.0.0/comment?path=/_system/governance/sample.xml&user=john

      Header   :  Content-Type = text/plain

...