diff options
author | gebele <gebele@in-silico.ch> | 2017-07-18 10:14:28 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2017-07-18 10:14:28 +0000 |
commit | 50e36d3043cebbc5547e311586a7e9f260244d96 (patch) | |
tree | 2d59570b059d500d1e21619fddfe5cc3fcd2b407 | |
parent | 7870cd69eaa1f0c62d980fb40c45abaacd8c71d2 (diff) |
fixed POST consumes parameter for swagger
-rw-r--r-- | api/api.json | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/api/api.json b/api/api.json index af9dac3..df69149 100644 --- a/api/api.json +++ b/api/api.json @@ -119,6 +119,9 @@ "model" ], "description": "Predict a compound or a nanoparticle", + "consumes": [ + "multipart/form-data" + ], "parameters": [ { "name": "identifier", @@ -854,6 +857,9 @@ ], "summary": "Descriptor calculation", "description": "Calculate descriptors for a single compound as SMILES string <br> <strong>curl example:</strong> <pre>curl -Lk -X POST -i -H \"Accept:application/json\" -F \"identifier=O=C1NC(=O)NC=C1\" -F \"descriptor=Openbabel.MW,JoeLib.LogP\" https://api.in-silico.ch/compound/descriptor </pre>.", + "consumes": [ + "multipart/form-data" + ], "parameters": [ { "name": "Accept", @@ -1040,7 +1046,8 @@ "description": "Authentication against OpenSSO. Returns authentication token. Requires Username and Password.", "operationId": "login", "consumes": [ - "text/plain" + "text/plain", + "multipart/form-data" ], "produces": [ "text/plain" @@ -1084,7 +1091,8 @@ "authentication" ], "consumes": [ - "text/plain" + "text/plain", + "multipart/form-data" ], "produces": [ "text/plain" |