@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ApiManagementClient
@base https://management.azure.com
@version 2019-01-01
@auth OAuth2
@endpoints 5
@toc subscriptions(5)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies
@desc Lists all the Global Policy definitions of the Api Management service.
@returns(200) Returns an array of Policy Contracts.

@endpoint HEAD /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Gets the entity state (Etag) version of the Global policy definition in the Api Management service.
@returns(200) The current entity state version is present in the ETag header.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Get the Global policy definition of the Api Management service.
@returns(200) Get the Global policy definition of the Api Management service.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Creates or updates the global policy configuration of the Api Management service.
@required {parameters: any # The policy contents to apply.}
@returns(200) Global policy configuration of the Api Management service was successfully updated.
@returns(201) Global policy configuration was successfully created.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}
@desc Deletes the global policy configuration of the Api Management Service.
@returns(200) Policy was successfully removed
@returns(204) Policy successfully removed by previous request or does not exist

@end
