Commit f2dc3ea6 authored by cazenave's avatar cazenave
Browse files

nginx.conf

parent 1e017820
......@@ -14,4 +14,4 @@ http {
}
}
}
......@@ -30,7 +30,7 @@ export class RepositoryComponent implements OnInit {
constructor(
private appConfig: AppConfiguration,
private appConfig: AppConfiguration,
private http: HttpClient,
private _FileSaverService: FileSaverService,
) { }
......@@ -98,26 +98,26 @@ repository:\n\
data ='\
@prefix dcat: <http://www.w3.org/ns/dcat#>.\n\
@prefix dct: <http://purl.org/dc/terms/>.\n\
@prefix fdp: <http://fdp-api.default.svc.cluster.local/>.\n\nfdp:new \n\
@prefix fdp: <http://localhost>.\n\nfdp:new \n\
a dcat:Catalog, dcat:Resource;\n\
dct:description "'+ this.Form.value.repodescription + '";\n\
dct:hasVersion "'+ this.Form.value.repoversion + '";\n\
dct:isPartOf <http://fdp-api.default.svc.cluster.local>;\n\
dct:isPartOf <http://localhost>;\n\
dct:title "'+ this.Form.value.reponame + '".\n'
const httpOptions = {
headers: new HttpHeaders({
'Accept': 'text/turtle',
'Content-Type': 'text/turtle',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIwOGY4YjNiNC01Nzc1LTQyYmQtYjlmMy0zMTFhZDVkNGFiODgiLCJpYXQiOjE1OTQxOTQwMzYsImV4cCI6MTU5NTQwMzYzNn0.p2ygh7D36NziWOSTpBplcyn4jLp_vKKoUUcg27M3hIo'
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI3ZTY0ODE4ZC02Mjc2LTQ2ZmItOGJiMS03MzJlNmUwOWY3ZTkiLCJpYXQiOjE1OTgwMDgxNzQsImV4cCI6MTU5OTIxNzc3NH0.yWSgkGV4z-nn1icME4XcZCZSaod_nXChRhcGEizsp38'
})
};
return this.http
.post(this.appConfig.fdpurl+"/catalog", data, httpOptions )
.subscribe( (r)=>{console.log('got r', r)}) ;
.subscribe( (r)=>{console.log('got r', r)}) ;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment