Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Apache Wink provides administration views in order to help developers better understand the services that the REST application expose. There are two administration views, the "application resource xml XML view" and the "resource registry xml XML view".

Application Resources

...

XML View

The application resource xml XML view shows the way the application is exposed to the user, it exposes the REST resources with their URI templates, the HTTP methods that are supported by the resources and the consume/produces MimeType supported by each method. This view can be used as a base for the service documentation.

Resource Registry

...

XML View

The resource registry xml XML view shows the way that 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 register the "AdminServlet" implemented by the org.apache.wink.server.internal.servlet.AdminServletin the web.xml file. No init parameters are required.

Example

TBDThe following code snippet is an example of a web application descriptor file.

Code Block
xml
xml
<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>