||
Skip to end of metadata
Go to start of metadata

This sample demonstrates how a simple custom UI can be created to add, view, and edit endpoints stored on the WSO2 Governance Registry. 

The "Resource Name," "Endpoint Name," and "Endpoint URI" are mandatory fields, and the "URI" must be valid.

Adding an endpoint reference as a resource

1. Drop the sample's jars into <G-REG_HOME>/repository/components/dropins/ directory from <G-REG_HOME>/samples/custom-ui/bin/ directory.

  • Copy and paste org.wso2.carbon.registry.samples.custom.topics-5.4.0-SNAPSHOT.jar into the <G-REG_HOME>/repository/components/dropins/ folder.
  • Copy and paste org.wso2.carbon.registry.samples.custom.topics.ui-5.4.0-SNAPSHOT.jar into the <G-REG_HOME>/repository/components/dropins/ folder.

2. Restart the server and log in to the admin console. See Running the Product for more information.

3. Go to the "Resources" menu. See Managing the Assets.

4. Click the "Add Resource" link to add a new resource, and choose "Create custom content" from the "Method" combo box.

5. A text box named "Media type" will be displayed. You will be able to select from several media type options in the drop-down list. Select "other."

6. Enter "epr" as the media type.

7. Click "Create Content." A form to enter endpoint details will be displayed.

8. Fill in the form and click "Save." The resource will be added.

Browsing the resource

1. Browse the added resource from the "Entries" table and click on it.

2. The content of the resource will be shown in a custom view.

3. The content can be edited by clicking "Edit endpoint."

4. Edit the content and click "Save."

  • No labels