Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dad
FFDS-register-front
Commits
f2dc3ea6
Commit
f2dc3ea6
authored
Aug 24, 2020
by
cazenave
Browse files
nginx.conf
parent
1e017820
Changes
2
Hide whitespace changes
Inline
Side-by-side
nginx.conf
View file @
f2dc3ea6
...
...
@@ -14,4 +14,4 @@ http {
}
}
}
src/app/repository/repository.component.ts
View file @
f2dc3ea6
...
...
@@ -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\n
fdp:new
\n\
@prefix fdp: <http://
localhost
>.
\n\n
fdp: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://local
host
>;
\n\
dct:title "
'
+
this
.
Form
.
value
.
reponame
+
'
".
\n
'
const
httpOptions
=
{
headers
:
new
HttpHeaders
({
'
Accept
'
:
'
text/turtle
'
,
'
Content-Type
'
:
'
text/turtle
'
,
'
Authorization
'
:
'
Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI
wOGY4YjNiNC01Nzc1LTQyYmQtYjlmMy0zMTFhZDVkNGFiODg
iLCJpYXQiOjE1OT
QxOTQwMzY
sImV4cCI6MTU5
NTQwMzYzNn0.p2ygh7D36NziWOSTpBplcyn4jLp_vKKoUUcg27M3hIo
'
'
Authorization
'
:
'
Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI
3ZTY0ODE4ZC02Mjc2LTQ2ZmItOGJiMS03MzJlNmUwOWY3ZTk
iLCJpYXQiOjE1OT
gwMDgxNzQ
sImV4cCI6MTU5
OTIxNzc3NH0.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
)})
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment