getProjectsSitesWithHttpInfo method

Future<Response> getProjectsSitesWithHttpInfo()

Returns the org's deployed sites at the pretty URLs they serve at.

Returns the org's deployed sites at the pretty URLs they serve at. It reads the SAME org-scoped store as /v1/projects and keeps only the projects that are actually live, so a draft or a failed build is not advertised as a site. Scope: a validated principal is required (403 without one) and the list is keyed by that principal's org.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getProjectsSitesWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/projects/sites';

  // 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,
  );
}