Class OAuthFlows
A unique parameter is defined by a combination of a name and location.
There are five possible parameter types.
"path" - Used together with Path Templating, where the parameter value is actually part of the operation's URL. This does not include the host or base path of the API. For example, in/items/{itemId}
, the path parameter isitemId
."query" - Parameters that are appended to the URL. For example, in/items?id=###
, the query parameter isid
."header" - Custom headers that are expected as part of the request."body" - The payload that's appended to the HTTP request. Since there can only be one payload, there can only be one body parameter. The name of the body parameter has no effect on the parameter itself and is used for documentation purposes only. Since Form parameters are also in the payload, body and form parameters cannot exist together for the same operation."formData" - Used to describe the payload of an HTTP request when eitherapplication/x-www-form-urlencoded
,multipart/form-data
or both are used as the content type of the request (in Swagger's definition, the consumes property of an operation). This is the only parameter type that can be used to send files, thus supporting the file type. Since form parameters are sent in the payload, they cannot be declared together with a body parameter for the same operation. Form parameters have a different format based on the content-type used (for further details, consulthttp://www.w3.org/TR/html401/interact/forms.html#h-17.13.4
):"application/x-www-form-urlencoded" - Similar to the format of Query parameters but as a payload. For example,foo=1&bar=swagger
- bothfoo
andbar
are form parameters. This is normally used for simple parameters that are being transferred."multipart/form-data" - each parameter takes a section in the payload with an internal header. For example, for the headerContent-Disposition: form-data; name="submit-name"
the name of the parameter issubmit-name
. This type of form parameters is more commonly used for file transfers.
Example:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Make a deep copy of this object.<T> T
Generic property getter.Bean property getter:authorizationCode .Bean property getter:clientCredentials .Bean property getter:implicit .Bean property getter:password .keySet()
Returns all the keys on this element.Generic property setter.setAuthorizationCode
(OAuthFlow value) Bean property setter:authorizationCode .setClientCredentials
(OAuthFlow value) Bean property setter:items .setImplicit
(OAuthFlow value) Bean property setter:items .setPassword
(OAuthFlow value) Bean property setter:items .protected OAuthFlows
strict()
Sets strict mode on this bean.
-
Constructor Details
-
OAuthFlows
public OAuthFlows()Default constructor. -
OAuthFlows
Copy constructor.- Parameters:
copyFrom
- The object to copy.
-
-
Method Details
-
copy
Make a deep copy of this object.- Returns:
- A deep copy of this object.
-
strict
Description copied from class:OpenApiElement
Sets strict mode on this bean.- Overrides:
strict
in classOpenApiElement
- Returns:
- This object
-
getImplicit
Bean property getter:implicit .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
setImplicit
Bean property setter:items .Describes the type of items in the array.
- Parameters:
value
- The new value for this property.
Property value is required iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
getPassword
Bean property getter:password .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
setPassword
Bean property setter:items .Describes the type of items in the array.
- Parameters:
value
- The new value for this property.
Property value is required iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
getClientCredentials
Bean property getter:clientCredentials .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
setClientCredentials
Bean property setter:items .Describes the type of items in the array.
- Parameters:
value
- The new value for this property.
Property value is required iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
getAuthorizationCode
Bean property getter:authorizationCode .Describes the type of items in the array.
- Returns:
- The property value, or
null if it is not set.
-
setAuthorizationCode
Bean property setter:authorizationCode .Describes the type of items in the array.
- Parameters:
value
- The new value for this property.
Property value is required iftype
is"array" .
Can benull to unset the property.- Returns:
- This object
-
get
Description copied from class:OpenApiElement
Generic property getter.Can be used to retrieve non-standard Swagger fields such as
"$ref" .- Overrides:
get
in classOpenApiElement
- Type Parameters:
T
- The datatype to cast the value to.- Parameters:
property
- The property name to retrieve.type
- The datatype to cast the value to.- Returns:
- The property value, or
null if the property does not exist or is not set.
-
set
Description copied from class:OpenApiElement
Generic property setter.Can be used to set non-standard Swagger fields such as
"$ref" .- Overrides:
set
in classOpenApiElement
- Parameters:
property
- The property name to set.value
- The new value for the property.- Returns:
- This object
-
keySet
Description copied from class:OpenApiElement
Returns all the keys on this element.- Overrides:
keySet
in classOpenApiElement
- Returns:
- All the keys on this element.
Nevernull .
-