Skip to content
Snippets Groups Projects
Commit 8a745415 authored by Kawtar Laariche's avatar Kawtar Laariche
Browse files

fix merge issues

parent 74d5f4e7
Branches 3-add-mdm-standard-connectors
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ export class PrivateCatalogsService { ...@@ -123,7 +123,7 @@ export class PrivateCatalogsService {
); );
} }
uploadFileToUrl( uploadExistingModelLicenseProfile(
loginUserID: string, loginUserID: string,
solutionId: string, solutionId: string,
revisionId: string, revisionId: string,
...@@ -141,8 +141,6 @@ export class PrivateCatalogsService { ...@@ -141,8 +141,6 @@ export class PrivateCatalogsService {
revisionId + revisionId +
'/' + '/' +
versionId; versionId;
const uploadUrl =
'https://dev02.ki-lab.nrw/api/license/upload/9b36ce33-ec9c-48e3-964f-5fd7e75ede6c/620ec698-4027-414a-8b9f-8d6503cbf35b/86e0f4fd-694a-4ba2-ba9f-bb3db1dc850f/1.0.0';
const formData = new FormData(); const formData = new FormData();
formData.append('file', file); formData.append('file', file);
...@@ -155,6 +153,24 @@ export class PrivateCatalogsService { ...@@ -155,6 +153,24 @@ export class PrivateCatalogsService {
return this.http.request(req); return this.http.request(req);
} }
uploadNewModelLicenseProfile(userId: string, file: File) {
const url =
apiConfig.apiBackendURL +
'/api/model/upload/' +
userId +
'/?licUploadFlag=' +
true;
const formData = new FormData();
formData.append('file', file);
const req = new HttpRequest('POST', url, formData, {
reportProgress: true,
responseType: 'json',
});
return this.http.request(req);
}
createUpdateLicenseProfile( createUpdateLicenseProfile(
loginUserID: string, loginUserID: string,
solutionId: string, solutionId: string,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment