@Retention(value=RUNTIME) public @interface RamlSubResource
Used in conjunction with the @RamlSubResources annotation to describe sub-resource paths within a resource class.
If the sub-resource contains URI parameters, one of these annotations needs to be supplied to describe the URI parameters correctly.
RamlSubResources| Modifier and Type | Required Element and Description |
|---|---|
javax.ws.rs.Path |
path
The path the sub-resource maps to.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
description
The description of the sub-resources purpose.
|
RamlParameter[] |
uriParameters
The URI parameters associated with the sub-resource path.
|
public abstract javax.ws.rs.Path path
The path the sub-resource maps to.
This path value should simply match the `@Path annotation on the associated method(s).
public abstract String description
The description of the sub-resources purpose.
public abstract RamlParameter[] uriParameters
The URI parameters associated with the sub-resource path.
Copyright © 2018. All rights reserved.