Package io.quarkus.rest.data.panache
Annotation Type ResourceProperties
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface ResourceProperties
An optional annotation to customize generated JAX-RS resource.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanexposedWhether this resource operations should be exposed as JAX-RS methods by default.booleanhalGenerate operations that support HAL content type.StringhalCollectionNameName that should be used when generating a HAL collection response.booleanpagedReturn a paged collection from the methods that return collections.StringpathURL path segment that should be used to access the resources.String[]rolesAllowedList of the security roles permitted to access the resources.
-
-
-
Element Detail
-
exposed
boolean exposed
Whether this resource operations should be exposed as JAX-RS methods by default. Separate methods can override this setting by usingMethodPropertiesannotation.Default: true.
- Default:
- true
-
-
-
path
String path
URL path segment that should be used to access the resources. This path segment is prepended to the segments specified with theMethodPropertiesannotations used on this resource's methods.Default: hyphenated resource name without a suffix. Ignored suffixes are `Controller` and `Resource`.
- Default:
- ""
-
-
-
paged
boolean paged
Return a paged collection from the methods that return collections. Requested page number and size are extracted from the query parameters `page` (default 0) and `size` (default 20). These additional headers are injected to the response: first, last, prev (if exists), next (if exists).Default: true.
- Default:
- true
-
-
-
hal
boolean hal
Generate operations that support HAL content type. HAL methods are generated in addition to the standard methods. They accept the same parameters but return a content of `application/hal+json` type. The operations that support HAL responses are `get`, `list`, `add` and `update`.Default: false.
- Default:
- false
-
-
-
halCollectionName
String halCollectionName
Name that should be used when generating a HAL collection response.Default: hyphenated resource name without a suffix. Ignored suffixes are `Controller` and `Resource`.
- Default:
- ""
-
-
-
rolesAllowed
String[] rolesAllowed
List of the security roles permitted to access the resources.Default: ""
- Default:
- {}
-
-