Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Administration Views

...

Apache Wink provides administration views to help developers better understand the services that the REST application expose.

There are two administration views

Application resources xml view

This view show the way the application is exposed to users, it exposed 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 abase for the service documentation.

Resource registry xml view

This view show the way the application is developed, it similar to the Application resources xml view but it also exposes the classes that implement resources and their priority in the registry.

This view can be useful for debugging.

Configuration

By default these views are disabled, in order to activate them there is a need to register the AdminServlet implemented by org.apache.wink.server.internal.servlet.AdminServletin the web.xml file, no init parameters are required.

Example:

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>