Merge branch 'master' of gitlab.eudat.eu:dmp/OpenAIRE-EUDAT-DMP-service-pilot

This commit is contained in:
annampak 2017-10-27 13:00:58 +03:00
commit d30b6db7b2
3 changed files with 9 additions and 7 deletions

View File

@ -137,7 +137,7 @@ SaveNewDmp(){
this.dmp.project = {"id":this.dmp.project};
this.dmp["version"] = 1;
this.serverService.createDmpForProject(this.dmp)
this.serverService.createDmpForCurrentUser(this.dmp)
.subscribe(
response =>{
console.log("response");

View File

@ -15,15 +15,17 @@ export class RestBase {
this.xml2jsonOBJ = new X2JS();
}
/*
protocol: string = "http";
hostname: string ="dl010.madgik.di.uoa.gr" ;//"localhost";//"dl010.madgik.di.uoa.gr";//
port: number = 8080;//8080;//
webappname: string = "dmp-backend";//"dmp-backend-new";//
*/
// protocol: string = "http";
// hostname: string ="dionysus.di.uoa.gr" ;
// port: number = 7070;
// webappname: string = "dmp-backend";//"dmp-backend-new";//
protocol: string = "http";
hostname: string = "dionysus.di.uoa.gr" ;
port: number = 7070;
webappname: string = "dmp-backend";
proxyPath : string = this.protocol+"://"+this.hostname+":"+this.port+"/"+this.webappname+"/proxy/";

View File

@ -105,9 +105,9 @@ export class ServerService {
}
public createDmpForProject(data:any){
public createDmpForCurrentUser(data:any){
debugger;
return this.restBase.post("dmp/create", data);
return this.restBase.post("dmp/createofuser", data);
}