import 'package:pieces_os_client/api.dart';
All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
databaseExport | GET /database/export | Your GET endpoint |
databaseImport | POST /database/import | /database/import [POST] |
ExportedDatabase databaseExport()
Your GET endpoint
This is going to export your current database.
import 'package:pieces_os_client/api.dart';
final api_instance = DatabaseApi();
try {
final result = api_instance.databaseExport();
print(result);
} catch (e) {
print('Exception when calling DatabaseApi->databaseExport: $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]
databaseImport(exportedDatabase)
/database/import [POST]
This is going to take in a database, and merge it with the current database. This will revert your database back to it original form if this request fails.
import 'package:pieces_os_client/api.dart';
final api_instance = DatabaseApi();
final exportedDatabase = ExportedDatabase(); // ExportedDatabase |
try {
api_instance.databaseImport(exportedDatabase);
} catch (e) {
print('Exception when calling DatabaseApi->databaseImport: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
exportedDatabase | ExportedDatabase | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]