Annotation Interface OpenApi.Response
- Enclosing class:
OpenApi
@Target(METHOD)
@Retention(CLASS)
@Repeatable(OpenApi.Responses.class)
@Documented
public static @interface OpenApi.Response
OpenAPI Response Object metadata.
When a method declares one or more explicit responses, generated OpenAPI response content is taken only from
content(); return-type response content is not inferred for those explicit responses.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionResponse description.intHTTP status code in the range100..599. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionResponse content entries.Response headers.Response links.Response summary.
-
Element Details
-
status
int statusHTTP status code in the range100..599. A method can declare at most one response for each status.This element supports exact status codes only. To declare
defaultor a wildcard response range (1XXthrough5XX), define the complete containing operation in a static OpenAPI document or anOpenApiDocumentSource, and configure Helidon not to generate the same path and method from annotations.- Returns:
- status code
-
description
-
summary
-
content
-
headers
-
links
-