import 'package:pieces_os_client/api.dart';
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
sensitivesCreateNewSensitive | POST /sensitives/create | /sensitives/create [POST] |
sensitivesDeleteSensitive | POST /sensitives/{sensitive}/delete | /sensitives/{sensitive}/delete [POST] |
sensitivesSnapshot | GET /sensitives | /sensitives [GET] |
Sensitive sensitivesCreateNewSensitive(seededSensitive)
/sensitives/create [POST]
This will create a new sensitive model.
import 'package:pieces_os_client/api.dart';
final api_instance = SensitivesApi();
final seededSensitive = SeededSensitive(); // SeededSensitive |
try {
final result = api_instance.sensitivesCreateNewSensitive(seededSensitive);
print(result);
} catch (e) {
print('Exception when calling SensitivesApi->sensitivesCreateNewSensitive: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
seededSensitive | SeededSensitive | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sensitivesDeleteSensitive(sensitive)
/sensitives/{sensitive}/delete [POST]
This will delete a sensitive based on the sensitive uuid.
import 'package:pieces_os_client/api.dart';
final api_instance = SensitivesApi();
final sensitive = sensitive_example; // String | This is a uuid that represents a sensitive.
try {
api_instance.sensitivesDeleteSensitive(sensitive);
} catch (e) {
print('Exception when calling SensitivesApi->sensitivesDeleteSensitive: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
sensitive | String | This is a uuid that represents a sensitive. |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Sensitives sensitivesSnapshot()
/sensitives [GET]
This will get a snapshot of all of the sensitives.
import 'package:pieces_os_client/api.dart';
final api_instance = SensitivesApi();
try {
final result = api_instance.sensitivesSnapshot();
print(result);
} catch (e) {
print('Exception when calling SensitivesApi->sensitivesSnapshot: $e\n');
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]