getProjectsBySlugDeploymentsByIdWithHttpInfo method
Returns one deployment of a project by id.
Returns one deployment of a project by id. It is how a console follows a build: the status (queued, uploading, live, error), the message a failure left, and the URL and prefix it went live at. Like the history, it never replays the upload grant. Scope: a validated principal is required (403 without one). Both the project and the deployment are resolved within that principal's org, so a deployment of another project — or of another tenant — is a 404.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getProjectsBySlugDeploymentsByIdWithHttpInfo(String slug, String id,) async {
// ignore: prefer_const_declarations
final path = r'/v1/projects/{slug}/deployments/{id}'
.replaceAll('{slug}', slug)
.replaceAll('{id}', id);
// 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,
);
}