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
beadd753
Commit
beadd753
authored
Jun 23, 2020
by
cazenave
Browse files
swagger form suite
parent
0476d3e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/accessapi/accessapi.component.ts
View file @
beadd753
...
...
@@ -93,23 +93,32 @@ paths: \n\
text
=
fileReader
.
result
as
string
;
lines
=
text
.
split
(
"
\n
"
);
let
j
=
1
;
for
(
let
i
=
0
;
i
<
lines
.
length
;
i
++
)
{
line
=
lines
[
i
].
split
(
"
:
"
);
if
(
line
[
0
].
trim
()
==
"
description
"
)
{
map
.
set
(
"
description
"
+
j
,
line
[
1
]);
j
++
;
}
else
{
map
.
set
(
line
[
0
].
trim
(),
line
[
1
]);
}
console
.
log
(
line
);
}
console
.
log
(
map
);
this
.
Form
.
setValue
({
title
:
map
.
get
(
'
title
'
),
description
:
map
.
get
(
'
description
'
),
description
:
map
.
get
(
'
description
1
'
),
version
:
map
.
get
(
'
version
'
),
url
:
map
.
get
(
'
- url
'
),
urldescription
:
map
.
get
(
'
description
'
),
urldescription
:
map
.
get
(
'
description
2
'
),
paths
:
''
,
verb
:
''
,
summary
:
map
.
get
(
'
summary
'
),
verbdescription
:
map
.
get
(
'
description
'
),
verbdescription
:
map
.
get
(
'
description
3
'
),
responses
:
''
,
responsedescription
:
map
.
get
(
'
description
'
),
responsedescription
:
map
.
get
(
'
description
4
'
),
content
:
''
,
schema
:
map
.
get
(
'
schema
'
),
items
:
map
.
get
(
'
items
'
),
...
...
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