Revision 59207
Added by Andreas Mantas over 3 years ago
repository.service.ts | ||
---|---|---|
33 | 33 |
|
34 | 34 |
constructor(private httpClient: HttpClient) { } |
35 | 35 |
|
36 |
addInterface(datatype: string, repoId: string, registeredBy: string, newInterface: RepositoryInterface): Observable<RepositoryInterface> { |
|
37 |
const url = `${this.apiUrl}addInterface?datatype=${datatype}&repoId=${repoId}®isteredBy=${registeredBy}`; |
|
36 |
addInterface(datatype: string, repoId: string, registeredBy: string, comment: string, newInterface: RepositoryInterface): Observable<RepositoryInterface> {
|
|
37 |
const url = `${this.apiUrl}addInterface?datatype=${datatype}&repoId=${repoId}®isteredBy=${registeredBy}&comment=${comment}`;
|
|
38 | 38 |
console.log(`knocking on: ${url}`); |
39 | 39 |
console.log(`sending ${JSON.stringify(newInterface)}`); |
40 | 40 |
return this.httpClient.post<RepositoryInterface>(url, newInterface, headerOptions); |
41 | 41 |
} |
42 | 42 |
|
43 |
updateInterface(repoId: string, registeredBy: string, interfaceInfo: RepositoryInterface): Observable<RepositoryInterface> { |
|
44 |
const url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}®isteredBy=${registeredBy}`; |
|
43 |
updateInterface(repoId: string, registeredBy: string, comment: string, interfaceInfo: RepositoryInterface): Observable<RepositoryInterface> {
|
|
44 |
const url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}®isteredBy=${registeredBy}&comment=${comment}`;
|
|
45 | 45 |
console.log(`knocking on: ${url}`); |
46 | 46 |
console.log(`sending ${JSON.stringify(interfaceInfo)}`); |
47 | 47 |
return this.httpClient.post<RepositoryInterface>(url, interfaceInfo, headerOptions); |
Also available in: Unified diff
changes on interface-form comments