Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2b790e00

Přidáno uživatelem Ondřej Váně před více než 4 roky(ů)

Re #7726: Implementace architektury FE

- implementace metody pro získání všech dokumentů z BE
- implementováno basic view pro stránku Browse

Zobrazit rozdíly:

fe/fulltextsearch/src/app/services/query.service.ts
3 3
import {Observable} from 'rxjs';
4 4
import {QueryResponse} from '../model/QueryResponse';
5 5
import {Query} from '../model/Query';
6
import {DocumentResponse} from '../model/DocumentResponse';
6 7

  
7 8
const httpOptions = {
8 9
  headers: new HttpHeaders( {
......
17 18

  
18 19
  backendUrl = 'http://localhost:8080/';
19 20
  uploadFileUrl = 'upload';
21
  documentsUrl = 'documents';
20 22

  
21 23
  constructor(private httpClient: HttpClient) {}
22 24

  
......
35 37
      observe: 'events'
36 38
    });
37 39
  }
40

  
41
  getDocuments(): Observable<DocumentResponse[]> {
42
    return this.httpClient.get<DocumentResponse[]>(this.backendUrl + this.documentsUrl, httpOptions);
43
  }
44

  
45

  
38 46
}

Také k dispozici: Unified diff