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
83e30573
Commit
83e30573
authored
Aug 06, 2019
by
hh1966
Browse files
Fix research plan api
parent
0c17b53f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/api/chemotion/research_plan_api.rb
View file @
83e30573
...
...
@@ -94,17 +94,13 @@ module Chemotion
desc
"Create a research plan"
params
do
requires
:name
,
type:
String
,
desc:
"Research plan name"
optional
:description
,
type:
Hash
,
desc:
"Research plan description"
requires
:sdf_file
,
type:
String
,
desc:
"Research plan SDF file"
requires
:svg_file
,
type:
String
,
desc:
"Research plan SVG file"
requires
:body
,
type:
Array
,
desc:
"Research plan body"
optional
:collection_id
,
type:
Integer
,
desc:
"Collection ID"
end
post
do
attributes
=
{
name:
params
[
:name
],
description:
params
[
:description
],
sdf_file:
params
[
:sdf_file
],
svg_file:
params
[
:svg_file
]
body:
params
[
:body
]
}
research_plan
=
ResearchPlan
.
new
attributes
...
...
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