import 'package:spanapi/api.dart';
All URIs are relative to https://api.lab5e.com
Method | HTTP request | Description |
---|---|---|
createOutput | POST /span/collections/{collectionId}/outputs | Create output |
deleteOutput | DELETE /span/collections/{collectionId}/outputs/{outputId} | Delete output |
listOutputs | GET /span/collections/{collectionId}/outputs | List outputs |
logs | GET /span/collections/{collectionId}/outputs/{outputId}/logs | Output logs |
retrieveOutput | GET /span/collections/{collectionId}/outputs/{outputId} | Retrieve output |
retrieveOutputStats | GET /span/collections/{collectionId}/outputs/{outputId}/stats | Retrieve output statistics |
status | GET /span/collections/{collectionId}/outputs/{outputId}/status | Output status |
updateOutput | PATCH /span/collections/{existingCollectionId}/outputs/{outputId} | Update output |
Output createOutput(collectionId, body)
Create output
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final collectionId = collectionId_example; // String |
final body = CreateOutputBody(); // CreateOutputBody |
try {
final result = api_instance.createOutput(collectionId, body);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->createOutput: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
body | CreateOutputBody |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Output deleteOutput(collectionId, outputId)
Delete output
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final collectionId = collectionId_example; // String |
final outputId = outputId_example; // String |
try {
final result = api_instance.deleteOutput(collectionId, outputId);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->deleteOutput: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
outputId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListOutputResponse listOutputs(collectionId)
List outputs
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final collectionId = collectionId_example; // String |
try {
final result = api_instance.listOutputs(collectionId);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->listOutputs: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OutputLogResponse logs(collectionId, outputId)
Output logs
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final collectionId = collectionId_example; // String |
final outputId = outputId_example; // String |
try {
final result = api_instance.logs(collectionId, outputId);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->logs: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
outputId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Output retrieveOutput(collectionId, outputId)
Retrieve output
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final collectionId = collectionId_example; // String |
final outputId = outputId_example; // String |
try {
final result = api_instance.retrieveOutput(collectionId, outputId);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->retrieveOutput: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
outputId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OutputStats retrieveOutputStats(collectionId, outputId)
Retrieve output statistics
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final collectionId = collectionId_example; // String |
final outputId = outputId_example; // String |
try {
final result = api_instance.retrieveOutputStats(collectionId, outputId);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->retrieveOutputStats: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
outputId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OutputStatusResponse status(collectionId, outputId)
Output status
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final collectionId = collectionId_example; // String |
final outputId = outputId_example; // String |
try {
final result = api_instance.status(collectionId, outputId);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->status: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
collectionId | String | ||
outputId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Output updateOutput(existingCollectionId, outputId, body)
Update output
import 'package:spanapi/api.dart';
// TODO Configure API key authorization: APIToken
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('APIToken').apiKeyPrefix = 'Bearer';
final api_instance = OutputsApi();
final existingCollectionId = existingCollectionId_example; // String |
final outputId = outputId_example; // String |
final body = UpdateOutputBody(); // UpdateOutputBody |
try {
final result = api_instance.updateOutput(existingCollectionId, outputId, body);
print(result);
} catch (e) {
print('Exception when calling OutputsApi->updateOutput: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
existingCollectionId | String | ||
outputId | String | ||
body | UpdateOutputBody |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]