import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
getSystemConfigByGroup | GET /apis/console.api.halo.run/v1alpha1/systemconfigs/{group} | |
updateSystemConfigByGroup | PUT /apis/console.api.halo.run/v1alpha1/systemconfigs/{group} |
JsonObject getSystemConfigByGroup(group)
Get system config by group
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getSystemConfigV1alpha1ConsoleApi();
final String group = group_example; // String | Group of the system config
try {
final response = api.getSystemConfigByGroup(group);
print(response);
} catch on DioException (e) {
print('Exception when calling SystemConfigV1alpha1ConsoleApi->getSystemConfigByGroup: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
group | String | Group of the system config |
- Content-Type: Not defined
- Accept: /, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateSystemConfigByGroup(group, body)
Update system config by group
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getSystemConfigV1alpha1ConsoleApi();
final String group = group_example; // String | Group of the system config
final JsonObject body = Object; // JsonObject |
try {
api.updateSystemConfigByGroup(group, body);
} catch on DioException (e) {
print('Exception when calling SystemConfigV1alpha1ConsoleApi->updateSystemConfigByGroup: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
group | String | Group of the system config | |
body | JsonObject | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]