import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
deleteSpecifiedNotification | DELETE /apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name} | |
listUserNotificationPreferences | GET /apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences | |
listUserNotifications | GET /apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications | |
markNotificationAsRead | PUT /apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read | |
markNotificationsAsRead | PUT /apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read | |
saveUserNotificationPreferences | POST /apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences |
Notification deleteSpecifiedNotification(username, name)
Delete the specified notification.
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().getNotificationV1alpha1UcApi();
final String username = username_example; // String | Username
final String name = name_example; // String | Notification name
try {
final response = api.deleteSpecifiedNotification(username, name);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1UcApi->deleteSpecifiedNotification: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | Username | |
name | String | Notification name |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReasonTypeNotifierMatrix listUserNotificationPreferences(username)
List notification preferences for the authenticated user.
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().getNotificationV1alpha1UcApi();
final String username = username_example; // String | Username
try {
final response = api.listUserNotificationPreferences(username);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1UcApi->listUserNotificationPreferences: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | Username |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NotificationList listUserNotifications(username, page, size, labelSelector, fieldSelector, sort)
List notifications for the authenticated user.
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().getNotificationV1alpha1UcApi();
final String username = username_example; // String | Username
final int page = 56; // int | Page number. Default is 0.
final int size = 56; // int | Size number. Default is 0.
final BuiltList<String> labelSelector = ; // BuiltList<String> | Label selector. e.g.: hidden!=true
final BuiltList<String> fieldSelector = ; // BuiltList<String> | Field selector. e.g.: metadata.name==halo
final BuiltList<String> sort = ; // BuiltList<String> | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
try {
final response = api.listUserNotifications(username, page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1UcApi->listUserNotifications: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | Username | |
page | int | Page number. Default is 0. | [optional] |
size | int | Size number. Default is 0. | [optional] |
labelSelector | BuiltList<String> | Label selector. e.g.: hidden!=true | [optional] |
fieldSelector | BuiltList<String> | Field selector. e.g.: metadata.name==halo | [optional] |
sort | BuiltList<String> | Sorting criteria in the format: property,(asc | desc). Default sort order is ascending. Multiple sort criteria are supported. |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Notification markNotificationAsRead(username, name)
Mark the specified notification as read.
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().getNotificationV1alpha1UcApi();
final String username = username_example; // String | Username
final String name = name_example; // String | Notification name
try {
final response = api.markNotificationAsRead(username, name);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1UcApi->markNotificationAsRead: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | Username | |
name | String | Notification name |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList markNotificationsAsRead(username, markSpecifiedRequest)
Mark the specified notifications as read.
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().getNotificationV1alpha1UcApi();
final String username = username_example; // String | Username
final MarkSpecifiedRequest markSpecifiedRequest = ; // MarkSpecifiedRequest |
try {
final response = api.markNotificationsAsRead(username, markSpecifiedRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1UcApi->markNotificationsAsRead: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | Username | |
markSpecifiedRequest | MarkSpecifiedRequest |
BuiltList<String>
- Content-Type: application/json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReasonTypeNotifierMatrix saveUserNotificationPreferences(username, reasonTypeNotifierCollectionRequest)
Save notification preferences for the authenticated user.
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().getNotificationV1alpha1UcApi();
final String username = username_example; // String | Username
final ReasonTypeNotifierCollectionRequest reasonTypeNotifierCollectionRequest = ; // ReasonTypeNotifierCollectionRequest |
try {
final response = api.saveUserNotificationPreferences(username, reasonTypeNotifierCollectionRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling NotificationV1alpha1UcApi->saveUserNotificationPreferences: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
username | String | Username | |
reasonTypeNotifierCollectionRequest | ReasonTypeNotifierCollectionRequest | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]