Project

General

Profile

« Previous | Next » 

Revision 62551

Added by John Balasis over 1 year ago

added desired compatibility level plus minor fixes

View differences:

repository.service.ts
50 50
    let url;
51 51
    comment = interfaceInfo.comments; // temp fix for emailing comment
52 52
    if (comment == null || comment === '') {
53
      url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}$desiredCompatibilityLevel=${desiredCompatibilityLevel}`;
53
      url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}&desiredCompatibilityLevel=${desiredCompatibilityLevel}`;
54 54
    } else {
55 55
      url  = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}&comment=${comment}$desiredCompatibilityLevel=${desiredCompatibilityLevel}`;
56 56
    }
......
66 66
    return this.httpClient.delete(url, {withCredentials: true, responseType: 'text'});
67 67
  }
68 68

  
69
  getInterfaceDesiredCompatibilityLevel(repoId: string, interfaceId: string) {
70
    return this.httpClient.get(environment.API_ENDPOINT + `/compliance/${repoId}/${interfaceId}`);
71
  }
72

  
69 73
  addRepository(datatype: string, newRepository: Repository): Observable<Repository> {
70 74
    const url = `${this.apiUrl}addRepository?datatype=${datatype}`;
71 75
    console.log(`knocking on: ${url}`);

Also available in: Unified diff