getIndexWithHttpInfo method
One index with history
Cost: 10 credits. Only dai has a history series; the others return an empty array with history_available false.
Note: This method returns the HTTP Response.
Parameters:
- String id (required): Canonical id or one of the short aliases (DAI, FV, WEAP, F2W). Case-insensitive.
Implementation
Future<Response> getIndexWithHttpInfo(String id, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/indices/{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,
);
}