This documentation is for WSO2 API Manager 2.1.0. View documentation for the latest release.

All docs This doc
Skip to end of metadata
Go to start of metadata

The registry REST API can be used to perform CRUD operations on registry resources. This is not packed with WSO2 API Manager by default. Follow the steps below to use the registry REST API with WSO2 API Manager. 

  1. Download the registry REST API webapp.
  2. Copy the webapp to <API-M_HOME>/repository/deployment/server/webapps
  3. Invoke the registry REST API. For an example, to get the content of the app-tiers.xml file, in the registry path _system/governance/apimgt/applicationdata, the following curl command can be used:

    curl -X GET -H "Authorization: Basic <base64_encoded_username:password>=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" "https://<hostname>:<port>/resource/1.0.0/artifact/_system/governance/apimgt/applicationdata/app-tiers.xml" -k
    curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" "https://localhost:9443/resource/1.0.0/artifact/_system/governance/apimgt/applicationdata/app-tiers.xml" -k

    For a complete reference of the available REST API operations, go to Resources with REST API

  • No labels