Project

General

Profile

« Previous | Next » 

Revision 52772

fixed some bugs and changed to HttpClient

View differences:

validator.service.ts
73 73
  reSubmitJobForValidation(id: string) {
74 74
    let url = `${this.apiUrl}reSubmitJobForValidation/${id}`;
75 75
    console.log(`knocking on: ${url}`);
76
    const body = {};
76 77

  
77
    return this.httpClient.post(url, {withCredentials: true, responseType: 'text'});
78
    return this.httpClient.post(url, body, {withCredentials: true, responseType: 'text'});
78 79
  }
79 80

  
80
  submitJobForValidation(job: JobForValidation) {
81
  submitJobForValidation(job: JobForValidation): Observable<JobForValidation> {
81 82
    let url = `${this.apiUrl}submitJobForValidation`;
82 83
    console.log(`knocking on: ${url}`);
83 84
    let body = JSON.stringify(job);
84 85

  
85
    return this.httpClient.post(url,body,{withCredentials: true, responseType: 'text'});
86
    return this.httpClient.post<JobForValidation>(url, body, headerOptions);
86 87
  }
87 88

  
88 89
}

Also available in: Unified diff