getModelWithHttpInfo method

Future<Response> getModelWithHttpInfo(
  1. String id, {
  2. Future<void>? abortTrigger,
})

Get one model

Cost: 10 credits. Priced above /authors/id, /methods/id and /datasets/id because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded. Delisted models are served here even though they are hidden from the default catalog list; the response then carries is_delisted=1 and days_since_gone.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getModelWithHttpInfo(String id, { Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/models/{id}'
    .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,
    abortTrigger: abortTrigger,
  );
}