...
Apache Wink provides administration views in order to help developers better understand the services that the REST application expose. There are two administration views
Application resources xml view
, the "application resource XML view" and the "resource registry XML view".
Application Resources XML View
The application resource XML view shows This view show the way the application is exposed to usersthe user, it exposed exposes the REST resources with their URI templates, the HTTP methods that are supported by the resources and the consume/produces MimeType supported supported by each method. This view can be used as abase a base for the service documentation.
Resource
...
Registry XML View
The resource registry XML view shows the way that This view show the way the application is developed, it is similar to the "Application resources xml XML view" but it also exposes the classes that implement resources and their priority in the registry. This view can be useful for debugging.
...
By default these views are disabled, in order to activate them there is a need to register the "AdminServlet" implemented by the org.apache.wink.server.internal.servlet.AdminServletin the web.xml file, no . No init parameters are required.
Example
The following code snippet is an example of a web application descriptor file.:
Code Block | ||||
---|---|---|---|---|
| ||||
<servlet>
<servlet-name>restSdkAdmin</servlet-name>
<servlet-class>org.apache.wink.server.internal.servlet.AdminServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>restSdkAdmin</servlet-name>
<url-pattern>/admin</url-pattern>
</servlet-mapping>
|