Skip to content

Instantly share code, notes, and snippets.

@tmkasun

tmkasun/gadget.xml

Last active Jun 13, 2016
Embed
What would you like to do?
Sample WSO2 Registry eXTention (RXT) File
<?xml version="1.0"?>
<artifactType type="application/vnd.wso2-gadget+xml" shortName="gadget" singularLabel="Gadget" pluralLabel="Gadgets"
hasNamespace="false" iconSet="10">
<storagePath>/gadgets/@{overview_name}/@{overview_version}</storagePath>
<nameAttribute>overview_name</nameAttribute>
<ui>
<list>
<column name="Name">
<data type="path" value="overview_name" href="@{storagePath}"/>
</column>
<column name="Version">
<data type="path" value="overview_version" href="@{storagePath}"/>
</column>
</list>
</ui>
<content>
<table name="Overview">
<field type="text" required="true" readonly="true">
<name>Name</name>
</field>
<field type="text" required="true" readonly="true">
<name>Version</name>
</field>
<field type="text">
<name>Createdtime</name>
</field>
<field type="options">
<name label="Category">Category</name>
<values>
<value>Google</value>
<value>WSO2</value>
<value>Templates</value>
</values>
</field>
<field type="text" url="true">
<name>URL</name>
</field>
<field type="text-area">
<name>Description</name>
</field>
</table>
<table name="Images">
<field type="text">
<name>Thumbnail</name>
</field>
<field type="text">
<name>Banner</name>
</field>
</table>
<table name="API Definition" columns="5" maxoccurs="unbounded">
<subheading>
<heading>Method</heading>
<heading>URL Pattern</heading>
<heading>Auth type</heading>
<heading>Throttling</heading>
<heading>Scope Name</heading>
</subheading>
<field type="options">
<name label="Method">Method</name>
<values>
<value>GET</value>
<value>POST</value>
<value>PUT</value>
<value>DELETE</value>
<value>PATCH</value>
<value>HEAD</value>
</values>
</field>
<field type="text" url="true">
<name label="URL">URL</name>
</field>
<field type="options">
<name label="Auth type">Auth type</name>
<values>
<value>None</value>
<value>Application</value>
<value>Application User</value>
<value>Application and Application User</value>
</values>
</field>
<field type="options">
<name label="Throttling">Throttling</name>
<values>
<value>Unlimited</value>
<value>Ultimate</value>
<value>Plus</value>
<value>Basic</value>
</values>
</field>
<field type="text" url="true">
<name label="Scope Name">Scope Name</name>
</field>
</table>
</content>
</artifactType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.