@Retention(value=RUNTIME) public @interface RamlTrait
A way to describe a particular trait, including request headers, query parameters and responses.
This can then be referenced using the @RamlIs annotation on resource methods, allowing those methods to inherit the defined trait.
RamlIs| Modifier and Type | Required Element and Description |
|---|---|
RamlDescribedBy |
describedBy
The overall descriptor of the trait, covering required headers, query parameters and associated responses.
|
String |
key
The trait key that is used by the
@RamlIs annotation. |
| Modifier and Type | Optional Element and Description |
|---|---|
String |
description
Describe the trait
|
String |
usage
Describe the usage situation of the trait
|
public abstract String key
The trait key that is used by the @RamlIs annotation.
public abstract RamlDescribedBy describedBy
The overall descriptor of the trait, covering required headers, query parameters and associated responses.
public abstract String usage
Describe the usage situation of the trait
public abstract String description
Describe the trait
Copyright © 2020. All rights reserved.