import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
createMenu | POST /api/v1alpha1/menus | |
deleteMenu | DELETE /api/v1alpha1/menus/{name} | |
getMenu | GET /api/v1alpha1/menus/{name} | |
listMenu | GET /api/v1alpha1/menus | |
patchMenu | PATCH /api/v1alpha1/menus/{name} | |
updateMenu | PUT /api/v1alpha1/menus/{name} |
Menu createMenu(menu)
Create Menu
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().getMenuV1alpha1Api();
final Menu menu = ; // Menu | Fresh menu
try {
final response = api.createMenu(menu);
print(response);
} catch on DioException (e) {
print('Exception when calling MenuV1alpha1Api->createMenu: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
menu | Menu | Fresh menu | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteMenu(name)
Delete Menu
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().getMenuV1alpha1Api();
final String name = name_example; // String | Name of menu
try {
api.deleteMenu(name);
} catch on DioException (e) {
print('Exception when calling MenuV1alpha1Api->deleteMenu: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of menu |
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]
Menu getMenu(name)
Get Menu
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().getMenuV1alpha1Api();
final String name = name_example; // String | Name of menu
try {
final response = api.getMenu(name);
print(response);
} catch on DioException (e) {
print('Exception when calling MenuV1alpha1Api->getMenu: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of menu |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MenuList listMenu(page, size, labelSelector, fieldSelector, sort)
List Menu
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().getMenuV1alpha1Api();
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.listMenu(page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling MenuV1alpha1Api->listMenu: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
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]
Menu patchMenu(name, jsonPatchInner)
Patch Menu
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().getMenuV1alpha1Api();
final String name = name_example; // String | Name of menu
final BuiltSet<JsonPatchInner> jsonPatchInner = ; // BuiltSet<JsonPatchInner> |
try {
final response = api.patchMenu(name, jsonPatchInner);
print(response);
} catch on DioException (e) {
print('Exception when calling MenuV1alpha1Api->patchMenu: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of menu | |
jsonPatchInner | BuiltSet<JsonPatchInner> | [optional] |
- Content-Type: application/json-patch+json
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Menu updateMenu(name, menu)
Update Menu
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().getMenuV1alpha1Api();
final String name = name_example; // String | Name of menu
final Menu menu = ; // Menu | Updated menu
try {
final response = api.updateMenu(name, menu);
print(response);
} catch on DioException (e) {
print('Exception when calling MenuV1alpha1Api->updateMenu: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Name of menu | |
menu | Menu | Updated menu | [optional] |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]