@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface POST
Defines the parametrized relative path for an HTTP POST 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
@POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart")
void restart(@PathParam("resourceGroupName") String rgName, @PathParam("vmName") String vmName, @PathParam("subscriptionId") String subscriptionId);
Example 2: absolute path segment
@POST(https://{functionApp}.azurewebsites.net/admin/functions/{name}/keys/{keyName})
NameValuePair generateFunctionKey(@PathParam("functionApp") String functionApp, @PathParam("name") String function, @PathParam("keyName") String keyName);