Can create a family from the GUI

This commit is contained in:
2023-06-27 17:13:12 +02:00
parent 378761f6d5
commit 5b06886c71
6 changed files with 325 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import { APIClient } from "./ApiClient";
export interface Family {}
export class FamilyApi {
/**
* Create a new family
*/
static async CreateFamily(name: string): Promise<void> {
await APIClient.exec({
method: "POST",
uri: "/family/create",
jsonData: { name: name },
});
}
}

View File

@ -9,6 +9,7 @@ interface Constraints {
mail_len: LenConstraint;
user_name_len: LenConstraint;
password_len: LenConstraint;
family_name_len: LenConstraint;
}
interface OIDCProvider {