import 'package:openapi/api.dart';
All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
cancelPackageInstallation | DELETE /Packages/Installing/{packageId} | Cancels a package installation. |
getPackageInfo | GET /Packages/{name} | Gets a package by name or assembly GUID. |
getPackages | GET /Packages | Gets available packages. |
getRepositories | GET /Repositories | Gets all package repositories. |
installPackage | POST /Packages/Installed/{name} | Installs a package. |
setRepositories | POST /Repositories | Sets the enabled and existing package repositories. |
cancelPackageInstallation(packageId)
Cancels a package installation.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: CustomAuthentication
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKeyPrefix = 'Bearer';
final api = Openapi().getPackageApi();
final String packageId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | Installation Id.
try {
api.cancelPackageInstallation(packageId);
} catch on DioException (e) {
print('Exception when calling PackageApi->cancelPackageInstallation: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
packageId | String | Installation Id. |
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]
PackageInfo getPackageInfo(name, assemblyGuid)
Gets a package by name or assembly GUID.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: CustomAuthentication
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKeyPrefix = 'Bearer';
final api = Openapi().getPackageApi();
final String name = name_example; // String | The name of the package.
final String assemblyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | The GUID of the associated assembly.
try {
final response = api.getPackageInfo(name, assemblyGuid);
print(response);
} catch on DioException (e) {
print('Exception when calling PackageApi->getPackageInfo: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | The name of the package. | |
assemblyGuid | String | The GUID of the associated assembly. | [optional] |
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList getPackages()
Gets available packages.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: CustomAuthentication
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKeyPrefix = 'Bearer';
final api = Openapi().getPackageApi();
try {
final response = api.getPackages();
print(response);
} catch on DioException (e) {
print('Exception when calling PackageApi->getPackages: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BuiltList getRepositories()
Gets all package repositories.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: CustomAuthentication
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKeyPrefix = 'Bearer';
final api = Openapi().getPackageApi();
try {
final response = api.getRepositories();
print(response);
} catch on DioException (e) {
print('Exception when calling PackageApi->getRepositories: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
installPackage(name, assemblyGuid, version, repositoryUrl)
Installs a package.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: CustomAuthentication
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKeyPrefix = 'Bearer';
final api = Openapi().getPackageApi();
final String name = name_example; // String | Package name.
final String assemblyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | GUID of the associated assembly.
final String version = version_example; // String | Optional version. Defaults to latest version.
final String repositoryUrl = repositoryUrl_example; // String | Optional. Specify the repository to install from.
try {
api.installPackage(name, assemblyGuid, version, repositoryUrl);
} catch on DioException (e) {
print('Exception when calling PackageApi->installPackage: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Package name. | |
assemblyGuid | String | GUID of the associated assembly. | [optional] |
version | String | Optional version. Defaults to latest version. | [optional] |
repositoryUrl | String | Optional. Specify the repository to install from. | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json, application/json; profile=CamelCase, application/json; profile=PascalCase
[Back to top] [Back to API list] [Back to Model list] [Back to README]
setRepositories(repositoryInfo)
Sets the enabled and existing package repositories.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: CustomAuthentication
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('CustomAuthentication').apiKeyPrefix = 'Bearer';
final api = Openapi().getPackageApi();
final BuiltList<RepositoryInfo> repositoryInfo = ; // BuiltList<RepositoryInfo> | The list of package repositories.
try {
api.setRepositories(repositoryInfo);
} catch on DioException (e) {
print('Exception when calling PackageApi->setRepositories: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
repositoryInfo | BuiltList<RepositoryInfo> | The list of package repositories. |
void (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]