getProjectsBySlugDomainsWithHttpInfo method
Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes.
Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes. domains is the routing answer — the hosts that are verified right now — while claims is the full panel, one row per host, each saying whether it is live or pending and, if pending, exactly what to publish. Scope: a validated principal is required (403 without one) and the site is resolved within that principal's org, so another tenant's slug is a 404.
Note: This method returns the HTTP Response.
Parameters:
- String slug (required): Slug is the project to act on, from the path. It is unique within the caller's org and nowhere else, so another tenant's slug is a 404.
Implementation
Future<Response> getProjectsBySlugDomainsWithHttpInfo(String slug,) async {
// ignore: prefer_const_declarations
final path = r'/v1/projects/{slug}/domains'
.replaceAll('{slug}', slug);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}