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); }