Versions Compared

Key

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

...

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 view" and the "resource registry xml view".

Application resources xml view

This view show The application resource xml view shows 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

This view show The resource registry xml view shows the way that the application is developed, it is 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.

...

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.

...

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>