Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hh1966
chemotion_eln_server
Commits
ddb46ef7
Commit
ddb46ef7
authored
Apr 13, 2019
by
hh1966
Browse files
Use value for format parameter
parent
e68b2244
Pipeline
#45270
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/api/chemotion/collection_api.rb
View file @
ddb46ef7
...
...
@@ -350,12 +350,12 @@ module Chemotion
desc
"Create export job"
params
do
requires
:collections
,
type:
Array
[
Integer
]
requires
:format
,
type:
S
tring
requires
:format
,
type:
S
ymbol
,
values:
[
:json
,
:zip
,
:udm
]
requires
:nested
,
type:
Boolean
end
post
do
collection_ids
=
params
[
:collections
].
uniq
format
=
params
[
:format
]
format
=
params
[
:format
]
.
to_s
nested
=
params
[
:nested
]
==
true
if
collection_ids
.
empty?
...
...
hh1966
@hh1966
mentioned in issue
#6 (closed)
·
Apr 13, 2019
mentioned in issue
#6 (closed)
mentioned in issue #6
Toggle commit list
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