@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) @Inherited public @interface Link
ApiResponse.links()
to add OpenAPI links to a response.ApiResponse
Modifier and Type | Optional Element and Description |
---|---|
String |
description
A description of the link.
|
Extension[] |
extensions
The list of optional extensions
|
String |
name
The name of this link.
|
String |
operationId
The name of an existing, resolvable OAS operation, as defined with a unique operationId.
|
String |
operationRef
A relative or absolute reference to an OAS operation.
|
LinkParameter[] |
parameters
Array of parameters to pass to an operation as specified with operationId or identified via operationRef.
|
String |
ref
A reference to a link defined in components links.
|
String |
requestBody
A literal value or {expression} to use as a request body when calling the target operation.
|
Server |
server
An alternative server to service this operation.
|
public abstract String name
public abstract String operationRef
public abstract String operationId
public abstract LinkParameter[] parameters
public abstract String description
public abstract String requestBody
public abstract Server server
public abstract Extension[] extensions
public abstract String ref
Copyright © 2018. All rights reserved.