This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

This sample demonstrates how a simple custom UI can be created to add, view, and edit endpoints stored on the WSO2 Governance Registry. Refer Custom User Interface section to learn more about how to add custom UI implementations into the registry.

Note

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 GREG_HOME/repository/components/dropins from [GREG_HOME]/samples/custom-ui/bin

  • Copy and paste org.wso2.carbon.registry.samples.custom.topics-4.5.0.jar into the [GREG_HOME]/repository/components/dropins folder.

  • Copy and paste org.wso2.carbon.registry.samples.custom.topics.ui-4.5.0.jar into the [GREG_HOME]/repository/components/dropins folder.

2. Restart the server and log in to the admin console. See Starting Governance Registry Management Console on Windows or Starting Governance Registry Management Console on Linux.

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

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