Skip to main content

get(_:)

Fetches a Pipeline object from the AiXplain backend.

Declaration

func get(_ pipelineID: String) async throws -> Pipeline

Parameters

pipelineID

The unique identifier of the pipeline to fetch.

Return Value

A Pipeline object containing the data for the requested pipeline.

Discussion

This method sends a GET request to the backend URL with the provided pipelineID and parses the response into a Pipeline object.

Note

PipelineError.missingBackendURL if the backend URL is missing. ModelError.invalidURL if the backend URL is invalid. NetworkingError.invalidStatusCode if the server returns an unexpected status code. An error of type Error for any other error that may occur during the request or parsing process.