Project

General

Profile

1
import {Injectable} from '@angular/core';
2
import {HttpClient} from "@angular/common/http";
3

    
4
@Injectable()
5
export class HtmlProjectReportService {
6

    
7
    constructor(private http: HttpClient ) {}
8

    
9
    getHTML(id: string, requestType:string, csvAPIURL: string ):any {
10
        let url = csvAPIURL;
11
        url += '?format=html&type='+requestType+'&fq=(' +
12
          //'((oaftype exact result) and (resulttypeid exact "'+resultTypeId+'")) and
13
          '(relprojectid exact "'+id+'"))';
14

    
15
        return this.http.get(url,{responseType: 'text'});
16
    }
17
}
(3-3/3)