getProjectsBySlugWithHttpInfo method

Future<Response> getProjectsBySlugWithHttpInfo(
  1. String slug
)

Returns one project of yours by slug — its settings, its live URL and the deployment currently serving it.

Returns one project of yours by slug — its settings, its live URL and the deployment currently serving it. Scope: a validated principal is required (403 without one) and the lookup is keyed by (org, slug), so another tenant's slug is a 404 exactly like a nonexistent one.

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> getProjectsBySlugWithHttpInfo(String slug,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/projects/{slug}'
    .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,
  );
}