public enum ApiEndpointType extends Enum<ApiEndpointType>
| Enum Constant and Description |
|---|
ACCEPT_HEADER
API endpoint type which uses the
Accept header value to declare the API output format, which can be
either application/json or application/yaml. |
PATH_PARAMETER
API endpoint type which uses a
type named path parameter to declare the API output format, which can
be either json or yaml. |
QUERY_PARAMETER
API endpoint type which uses a
type named query parameter to declare the API output format, which
can be either json or yaml. |
| Modifier and Type | Method and Description |
|---|---|
static ApiEndpointType |
getDefault()
Get the default API endpoint type.
|
static ApiEndpointType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiEndpointType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiEndpointType QUERY_PARAMETER
type named query parameter to declare the API output format, which
can be either json or yaml.public static final ApiEndpointType PATH_PARAMETER
type named path parameter to declare the API output format, which can
be either json or yaml.
The path parameter is prefixed by a dot (.).
public static final ApiEndpointType ACCEPT_HEADER
Accept header value to declare the API output format, which can be
either application/json or application/yaml.public static ApiEndpointType[] values()
for (ApiEndpointType c : ApiEndpointType.values()) System.out.println(c);
public static ApiEndpointType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ApiEndpointType getDefault()
Copyright © 2019 The Holon Platform. All rights reserved.