import 'package:knowgo/api.dart';
All URIs are relative to https://api.adaptant.io/v1
Method | HTTP request | Description |
---|---|---|
currentConfig | GET /config | Obtain configuration information about the current KnowGo instance |
Config currentConfig()
Obtain configuration information about the current KnowGo instance
import 'package:knowgo/api.dart';
// TODO Configure API key authorization: app_id
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('app_id').apiKeyPrefix = 'Bearer';
// TODO Configure HTTP basic authorization: bearerAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearerAuth').password = 'YOUR_PASSWORD';
// TODO Configure API key authorization: cookieAuth
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookieAuth').apiKeyPrefix = 'Bearer';
var api_instance = ServerApi();
try {
var result = api_instance.currentConfig();
print(result);
} catch (e) {
print("Exception when calling ServerApi->currentConfig: $e\n");
}
This endpoint does not need any parameter.
app_id, bearerAuth, cookieAuth
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]