HTTP-Part Annotations
The annotations used for defining the schema for request HTTP parts are:
- {@link oaj.http.annotation.Body Body}
- {@link oaj.http.annotation.Header Header}
- {@link oaj.http.annotation.FormData FormData}
- {@link oaj.http.annotation.Query Query}
- {@link oaj.http.annotation.Path Path}
- {@link oaj.http.annotation.HasFormData HasFormData}
- {@link oaj.http.annotation.HasQuery HasQuery}
- {@link oaj.http.annotation.Request Request}
The annotations used for defining the schema for response HTTP parts are:
- {@link oaj.http.annotation.ResponseBody ResponseBody}
- {@link oaj.http.annotation.ResponseHeader ResponseHeader}
- {@link oaj.http.annotation.ResponseStatus ResponseStatus}
- {@link oaj.http.annotation.Response Response}
The sub-annotations used in the annotation above are:
- {@link oaj.jsonschema.annotation.Schema Schema}
- {@link oaj.jsonschema.annotation.Items Items}
Other Notes:
-
Annotation parameter values will be aggregated when used on POJO parent and child classes.
Values on child classes override values on parent classes.
-
Annotation parameter values will be aggregated when used on both POJOs and REST methods.
Values on methods override values on POJO classes.