Hi Charitha,
See my comments in line.

>
> 1. In G-reg UI, I can see "Add WADL" similar to the other meta data
> options. "Add WADL" UI has the following elements by default.
> Name (mandatory)
> Namespace (mandatory)
> Documentation ( A table with 3 columns, "Document Type", "URL", "Comment")
>
> How can I browse my file system or point to a URL location and add a WADL
> file? I do not see such an option. Isn't it the primary use case since the
> similar meta-data types such as WSDLs/xsds can be uploaded by browsing file
> system or using a URL?
>

Normally we add the wadl file as a resource using the resource browser with
the mediatype "application/vnd.wso2.registry-ext-wadl+xml" and WADL handler
will do the rest: saving it as WADL and WADL Resources. You can select the
file location as local file system or a URI. Try to add the attached sample
WADL files.

>
> 2. Why do we have a separate menu item to add WADL resources?
>

We need a separate menu for WADL Resource, because a WADL Resource may
contain WADL Resource inside it. We can't do this implementation using the
existing RXT configurations.  You can see a such case in the sample.wadl.


> 3. In "Add WADL resource" UI, what is "name" attribute associated with a
> resource? According to WADL spec, resource is identified by optional id
> attribute or path.
>

In the REST way we have resources and we execute HTTP methods on it. So
WADL Resource is the resource I mentioned in the REST API which defined in
the WADL. Here I used the path  as the name, not the optional id.


>
> 4. In "Add WADL resource" UI, what does "Add Test" mean? When I clicked on
> "Add Test", HTTP method is added. Should not it be "Add Method"?
>

This is a typo in wadlresource.rxt and I fixed it in the commited revision
132244.


>
> Btw, has this component been gone through a formal code/architecture
> review?
>
>
This was a sample in the asset-model and we moved it as OOTB few weeks ago.
So we didn't have the architecture review yet.

thanks
Eranda
*
*

Attachment: sample.wadl
Description: Binary data

Attachment: sample2.wadl
Description: Binary data

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to