Can create a family from the GUI
This commit is contained in:
		
							
								
								
									
										16
									
								
								geneit_app/src/api/FamilyApi.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								geneit_app/src/api/FamilyApi.ts
									
									
									
									
									
										Normal 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 },
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -9,6 +9,7 @@ interface Constraints {
 | 
			
		||||
  mail_len: LenConstraint;
 | 
			
		||||
  user_name_len: LenConstraint;
 | 
			
		||||
  password_len: LenConstraint;
 | 
			
		||||
  family_name_len: LenConstraint;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
interface OIDCProvider {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user