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

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains
@desc Get all top-level domains supported for registration.
@required {subscriptionId: any # Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)., api-version: any # API Version}
@returns(200) OK

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}
@desc Get details of a top-level domain.
@required {name: any # Name of the top-level domain., subscriptionId: any # Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)., api-version: any # API Version}
@returns(200) OK

@endpoint POST /subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}/listAgreements
@desc Gets all legal agreements that user needs to accept before purchasing a domain.
@required {name: any # Name of the top-level domain., agreementOption: map # Domain agreement options., subscriptionId: any # Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)., api-version: any # API Version}
@returns(200) OK

@end
