WSO2 Governance Registry team ready to release WADL support(Web Application Description Language) with oncoming release WSO2 Governance Registry 4.6.0 in mid February.
Web Application Description Language(WADL) is a XML which describes HTTP-based web applications. Most popular usage of WADL is describe REST(Representational state transfer) web services. WADL have the ability to represent model resources provided by the service and relationships between them. For more read and specification.
Here I am trying to give you a full description on how to govern WADLs using WSO2 Governance Registry. I am using G-Reg for WSO2 Governance Registry for ease.
Let me first start with adding WADL into G-Reg. To do that click on the Metadata => Add => WADL as shown in following figure.
There are two methods to add a WADL.
- Importing WADL from a URL.
This allows you to import a WADL file to G-Reg using a WADL URL. Following figure shows how it could be done.
- Uploading from file system.
This allows you to upload a WADL which located in your file system. You can simply browse the file system to locate WADL file. Following figure shows how it could be done.
Now you uploaded some WADL files and you want to list them down. To do that click on the Metadata => List => WADL as shown in following figure.
Click on above link will redirect you to list of WADLs as follows.
As you can see in the above figure you can filter WADL by its name. Also there is an option where you can search WADLs by its Lifecycle or Lifecycle state as shown in figure below.
Ok, now you have uploaded some WADLs list them up. Now lets see how its look like. Click any wadl you want in the list to see it. You will get a pretty nice view which has different sections/portals for different purposes. Let me explain one by one.
1. Content
Content has two different views,
- Custom view : Where we used a tree structure to show how the resources are organized in the WADL file. See the figure below.
- Standard View: This view you can use to view the full WADL file, edit it or download. See the figure below.
2. Metadata
In this section you find the metadata of the WADL file as described below.
- Created : Created time and author
- Last updated : Last updated time and author
- Mediatype : Mediatype which we used to identify as a WADL which is always application/wadl+xml for WADLs (Which is not finalize and may subjected to change).
- Checkpoints : Use to create a new version of WADL.
- Versions : Use to view the existing versions of the WADL.
- Description : Description of the WADL.
For more general details of metadata click here.
3. Properties
You can use this to keep WADL related properties. See the figure: adding a property.
For more general details of properties click here.
4. Associations and Dependencies
Associations and Dependencies list down the relationships of WADL with other artifacts in G-Reg.
When uploading/importing a WADL to G-Reg it will automatically download the schema files used in WADL and add them to the G-Reg and set them as dependencies of the WADL file. Also G-Reg create a service for the WADL where the WADL is used by that service. See how the Associations and Dependencies are automatically generated for Sample3.wadl in the following figure.
Here listing3.xsd is a dependency of Sample3.wadl and it is used by sample3 service as its dependency.
For more general details of associations and dependencies click here.
5. Lifecycle
WADL can associate a lifecycle using the lifecycle portal. You can associate any lifecycle which is currently in the G-Reg using this portal as shown in figure.
For more details on adding a lifecycle to G-Reg click here and for more details on associating lifecycle click here.
6. Community features
A WADL can have Comments and Ratings where users can comment on a WADL or rate a WADL. You can add comments and rate using the Comments and Ratings portals as shown in the figure below.
In Ratings it shows, My Rating where current user rating for the WADL and Rating where average rating for the WADL.
For more details on comments and rating click here.
7. Retention
Retention is use to restrict users from Reading and/or writing to a certain WADL. You can add a retention as shown in the figure below.
For more details on retention click here.
8. Subscription
Subscriptions are use to subscribe different WADL events for notification. Following figure shows how to subscribe to a different events.
There are several events you can subscribe a WADL for.
- Check LC Item
- Uncheck LC Item
- Delete
- Create LC
- Delete LC
- Change LC state
- Update
Also there are several notification types G-Reg support.
- REST
- SOAP
- User Profile
- Role Profile
- Management Console
- JMX
For more details on subscriptions click here.
9. Tags and Tag Search
You can tag WADLs with different tags where you can search WADLs according to their tags. Following figures shows how to add a tag and how to use the tag search portal to search WADLs.
For more details on tags and tag search click here.
10. Permissions
Permissions are use to set the authority to different roles to read/write or delete WADLs. You set the permissions to different roles using permission section as shown in the figure.
For more details on adding a users and roles click here and for more details on managing permissions click here.
That's it for Governing WADLs in WSO2 Governance Registry.
When will WSO2 Governance Registry 4.6.0 be released? It missed release in mid February
ReplyDeleteYes, we were not able to make it February. It rescheduled to release on early June.
ReplyDeleteFingers crossed for a release... are there any milestones or interim releases available?
ReplyDelete