@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 6
@toc subscriptions(6)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches
@desc Lists a collection of all external Caches in the specified service instance.
@returns(200) Returns a collection of Cache entity.

@endpoint HEAD /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}
@desc Gets the entity state (Etag) version of the Cache specified by its identifier.
@returns(200) Specified Cache entity exists and current entity state version is present in the ETag header.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}
@desc Gets the details of the Cache specified by its identifier.
@returns(200) The response body contains the specified Cache entity.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}
@desc Creates or updates an External Cache to be used in Api Management instance.
@required {parameters: any # Create or Update parameters.}
@returns(200) The Cache details were successfully updated.
@returns(201) The new Cache was successfully added.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}
@desc Updates the details of the cache specified by its identifier.
@required {parameters: any # Update parameters.}
@returns(204) The cache details were successfully updated.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}
@desc Deletes specific Cache.
@returns(200) The Cache was successfully deleted.
@returns(204) The Cache was successfully deleted.

@end
