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

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/topQueries
@desc Gets a list of top queries by database.
@required {serverName: any # The name of the server., databaseName: any # The name of the database.}
@returns(200) OK

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/topQueries/{queryId}/statistics
@desc Lists a query's statistics.
@required {serverName: any # The name of the server., databaseName: any # The name of the database., queryId: any # The id of the query}
@returns(200) OK

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/topQueries/{queryId}/queryText
@desc Gets a query's text.
@required {serverName: any # The name of the server., databaseName: any # The name of the database., queryId: any # The id of the query}
@returns(200) OK

@end
