From 1c7e514863d6b00bc87dcf51e6177c9c4a590233 Mon Sep 17 00:00:00 2001 From: alyaa999 Date: Tue, 19 Mar 2024 01:01:56 +0200 Subject: [PATCH] add new identifiers to editor (console ) -- >(Adapters - Query Interfaces ) --- src/app/components/editor/editor.component.ts | 16 ++++++++++++++++ src/app/services/crud.service.ts | 9 +++++++++ 2 files changed, 25 insertions(+) diff --git a/src/app/components/editor/editor.component.ts b/src/app/components/editor/editor.component.ts index 306ac660..cf1c8009 100644 --- a/src/app/components/editor/editor.component.ts +++ b/src/app/components/editor/editor.component.ts @@ -44,6 +44,22 @@ export class EditorComponent implements OnInit, AfterViewInit, OnChanges { }); } ); + this._crud.getAdapterNames().subscribe( + (res:any[]) =>{ + res.forEach(element=> { + this.suggestions.push(element); + }); + + } + ); + this._crud.getQueryInterfaceNames().subscribe( + (res :any[]) =>{ + res.forEach(element=>{ + this.suggestions.push(element); + }); + } + ); + } ngOnInit() { diff --git a/src/app/services/crud.service.ts b/src/app/services/crud.service.ts index f77e5e76..e6be6fc2 100644 --- a/src/app/services/crud.service.ts +++ b/src/app/services/crud.service.ts @@ -66,6 +66,15 @@ export class CrudService { return socket.sendMessage(data); } + getAdapterNames () + { + return this._http.get(`${this.httpUrl}/getAdpaterNames` ,this.httpOptions); + } + getQueryInterfaceNames() + { + return this._http.get(`${this.httpUrl}/getQueryInterfaceNames`, this.httpOptions); + } + getSchema(request: SchemaRequest) { return this._http.post(`${this.httpUrl}/getSchemaTree`, request, this.httpOptions); }