3.6 KiB
3.6 KiB
manager_api_new.api.ApiKeyApi
Load the API package
import 'package:manager_api_new/api.dart';
All URIs are relative to https://localhost:5001
| Method | HTTP request | Description |
|---|---|---|
| apiKeyCreateApiKey | POST /api/ApiKey | |
| apiKeyGetApiKeys | GET /api/ApiKey | |
| apiKeyRevokeApiKey | DELETE /api/ApiKey/{id} |
apiKeyCreateApiKey
MultipartFile apiKeyCreateApiKey(createApiKeyRequest)
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = ApiKeyApi();
final createApiKeyRequest = CreateApiKeyRequest(); // CreateApiKeyRequest |
try {
final result = api_instance.apiKeyCreateApiKey(createApiKeyRequest);
print(result);
} catch (e) {
print('Exception when calling ApiKeyApi->apiKeyCreateApiKey: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| createApiKeyRequest | CreateApiKeyRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiKeyGetApiKeys
MultipartFile apiKeyGetApiKeys()
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = ApiKeyApi();
try {
final result = api_instance.apiKeyGetApiKeys();
print(result);
} catch (e) {
print('Exception when calling ApiKeyApi->apiKeyGetApiKeys: $e\n');
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiKeyRevokeApiKey
MultipartFile apiKeyRevokeApiKey(id)
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = ApiKeyApi();
final id = id_example; // String |
try {
final result = api_instance.apiKeyRevokeApiKey(id);
print(result);
} catch (e) {
print('Exception when calling ApiKeyApi->apiKeyRevokeApiKey: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]