diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-09-23 10:53:49 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-09-23 10:53:49 +0200 |
commit | 6c143867084ba4594329498741251fe4000611e9 (patch) | |
tree | ffde78847f34c68b492e3976fbcc3e08d90896eb | |
parent | 4871577cb0ff00f11f20c1df805ad3f70336284e (diff) |
minor fixes
-rw-r--r-- | api/api.json | 2 | ||||
-rw-r--r-- | application.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/api/api.json b/api/api.json index 22b934e..bc1d465 100644 --- a/api/api.json +++ b/api/api.json @@ -111,7 +111,7 @@ "parameters": [ { "name": "identifier", - "in": "header", + "in": "formData", "description": "SMILES identifier", "required": true, "type": "string" diff --git a/application.rb b/application.rb index 7ccaf05..0ffc633 100644 --- a/application.rb +++ b/application.rb @@ -49,10 +49,10 @@ end post "/model/:id/?" do - @identifier = params[:identifier] + identifier = params[:identifier] begin # get compound from SMILES - compound = Compound.from_smiles @identifier + compound = Compound.from_smiles identifier rescue @error_report = "Attention, '#{params[:identifier]}' is not a valid SMILES string." return @error_report |