@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Host
HostParam must be
provided. See Java docs in HostParam for directions for host
parameters.
The host's value must contain the scheme/protocol and the host. The host's value may contain the
port number.
Example 1: Static annotation.
@Host("https://management.azure.com")
interface VirtualMachinesService {
@GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}")
VirtualMachine getByResourceGroup(@PathParam("resourceGroupName") String rgName, @PathParam("vmName") String vmName, @PathParam("subscriptionId") String subscriptionId);
}
Example 2: Dynamic annotation.
@Host("https://{vaultName}.vault.azure.net:443")
interface KeyVaultService {
@GET("secrets/{secretName}")
Secret get(@HostParam("vaultName") String vaultName, @PathParam("secretName") String secretName);
}public abstract String value
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/