From 4121f15eb7b36170a0a325944982aa2aa133494b Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 3 Jun 2015 13:47:17 +0200 Subject: adapt api file with new route --- api/aa.json | 84 ------------------------------------------------------ api/miniaa.json | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ bin/miniaa-install | 0 3 files changed, 84 insertions(+), 84 deletions(-) delete mode 100644 api/aa.json create mode 100644 api/miniaa.json mode change 100644 => 100755 bin/miniaa-install diff --git a/api/aa.json b/api/aa.json deleted file mode 100644 index 086d526..0000000 --- a/api/aa.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "version": "1.0.0", - "title": "OpenTox OpenSSO" - }, - "host": "enm.in-silico.ch", - "schemes": [ - "https" - ], - "paths": { - "/aa/authenticate": { - "post": { - "description": "Authentication against OpenSSO. Returns token. Requires Username and Password.", - "operationId": "login", - "consumes": [ - "text/plain" - ], - "produces": [ - "text/plain" - ], - "parameters": [ - { - "in": "formData", - "name": "username", - "description": "username", - "required": true, - "type": "string" - }, - { - "in": "formData", - "name": "password", - "description": "password", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response" - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - } - } - } - }, - "/aa/logout": { - "post": { - "description": "Devalidates a token. Requires Subjectid.", - "operationId": "login", - "consumes": [ - "text/plain" - ], - "produces": [ - "text/plain" - ], - "parameters": [ - { - "in": "formData", - "name": "subjectid", - "description": "subjectid", - "required": true, - "type": "string" - } - ], - "responses": { - "200": { - "description": "Successful response" - }, - "400": { - "description": "Bad Request" - }, - "401": { - "description": "Unauthorized" - } - } - } - } - } -} \ No newline at end of file diff --git a/api/miniaa.json b/api/miniaa.json new file mode 100644 index 0000000..e33ff23 --- /dev/null +++ b/api/miniaa.json @@ -0,0 +1,84 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "OpenTox OpenSSO" + }, + "host": "enm.in-silico.ch", + "schemes": [ + "https" + ], + "paths": { + "/miniaa/authenticate": { + "post": { + "description": "Authentication against OpenSSO. Returns token. Requires Username and Password.", + "operationId": "login", + "consumes": [ + "text/plain" + ], + "produces": [ + "text/plain" + ], + "parameters": [ + { + "in": "formData", + "name": "username", + "description": "username", + "required": true, + "type": "string" + }, + { + "in": "formData", + "name": "password", + "description": "password", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successful response" + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + } + } + } + }, + "/miniaa/logout": { + "post": { + "description": "Devalidates a token. Requires Subjectid.", + "operationId": "login", + "consumes": [ + "text/plain" + ], + "produces": [ + "text/plain" + ], + "parameters": [ + { + "in": "formData", + "name": "subjectid", + "description": "subjectid", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Successful response" + }, + "400": { + "description": "Bad Request" + }, + "401": { + "description": "Unauthorized" + } + } + } + } + } +} \ No newline at end of file diff --git a/bin/miniaa-install b/bin/miniaa-install old mode 100644 new mode 100755 -- cgit v1.2.3