Can export data from UI

This commit is contained in:
2023-08-18 15:10:16 +02:00
parent 5fa3d79b4c
commit 6c82104cdc
7 changed files with 273 additions and 88 deletions

View File

@ -0,0 +1,17 @@
import { APIClient } from "./ApiClient";
/**
* Data management api client
*/
export class DataApi {
/**
* Export the data of a family
*/
static async ExportData(family_id: number): Promise<Blob> {
const res = await APIClient.exec({
uri: `/family/${family_id}/data/export`,
method: "GET",
});
return res.data;
}
}