import 'package:halo_client/api.dart';All URIs are relative to http://localhost:8091
| Method | HTTP request | Description |
|---|---|---|
| queryCategories | GET /apis/api.content.halo.run/v1alpha1/categories | |
| queryCategoryByName | GET /apis/api.content.halo.run/v1alpha1/categories/{name} | |
| queryPostsByCategoryName | GET /apis/api.content.halo.run/v1alpha1/categories/{name}/posts |
CategoryVoList queryCategories(page, size, labelSelector, fieldSelector, sort)
Lists categories.
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().getCategoryV1alpha1PublicApi();
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.queryCategories(page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling CategoryV1alpha1PublicApi->queryCategories: $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]
CategoryVo queryCategoryByName(name)
Gets category by name.
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().getCategoryV1alpha1PublicApi();
final String name = name_example; // String | Category name
try {
final response = api.queryCategoryByName(name);
print(response);
} catch on DioException (e) {
print('Exception when calling CategoryV1alpha1PublicApi->queryCategoryByName: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| name | String | Category name |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListedPostVoList queryPostsByCategoryName(name, page, size, labelSelector, fieldSelector, sort)
Lists posts by category name.
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().getCategoryV1alpha1PublicApi();
final String name = name_example; // String | Category name
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.queryPostsByCategoryName(name, page, size, labelSelector, fieldSelector, sort);
print(response);
} catch on DioException (e) {
print('Exception when calling CategoryV1alpha1PublicApi->queryPostsByCategoryName: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| name | String | Category name | |
| 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]