Setup and Configuration
This section describes how to include the Restful Objects viewer’s module and set its configuration properties.
Maven pom.xml
Dependency Management
If your application inherits from the Apache Causeway starter app (org.apache.causeway.app:causeway-app-starter-parent
) then that will define the version automatically:
<parent>
<groupId>org.apache.causeway.app</groupId>
<artifactId>causeway-app-starter-parent</artifactId>
<version>3.1.0</version>
<relativePath/>
</parent>
Alternatively, import the core BOM. This is usually done in the top-level parent pom of your application:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.causeway.core</groupId>
<artifactId>causeway-core</artifactId>
<version>3.1.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
Update AppManifest
In your application’s AppManifest
(top-level Spring @Configuration
used to bootstrap the app), import the
@Configuration
@Import({
...
CausewayModuleViewerRestfulObjectsViewer.class,
...
})
public class AppManifest {
}
Configuration Properties
The Configuration Guide includes a section for the Restful Objects viewer.
Deprecated
These configuration properties that can be used to suppress or simplify the default RO-spec representations.
These configuration properties pre-date the support for the Apache Causeway profile, and are limited by the fact that they are global configuration settings, so cannot be influenced on a request-by-request basis (as is the case with the Accept
header used for the Apache Causeway profile).
They have therefore been deprecated, and may be removed in the future.
Nevertheless, those configuration properties are:
If these configuration settings are set in conjunction with using the Apache Causeway profile, then the special |