![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.rest.v2.annotations.GET Maven / Gradle / Ivy
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.rest.v2.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines the parametrized relative path for an HTTP GET method.
*
* The required value can be either a relative path or an absolute path. When it's
* an absolute path, it must start with a protocol or a parametrized segment.
* (Otherwise the parse cannot tell if it's absolute or relative)
*
* Example 1: relative path segments
*
* {@literal @}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: absolute path segment
*
* {@literal @}GET({nextLink})
* {@literal List} listNext(@PathParam("nextLink") String nextLink);
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface GET {
/**
* Get the relative path of the annotated method's GET URL.
* @return The relative path of the annotated method's GET URL.
*/
String value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy