diff options
Diffstat (limited to 'aa/aa.json')
-rw-r--r-- | aa/aa.json | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/aa/aa.json b/aa/aa.json new file mode 100644 index 0000000..086d526 --- /dev/null +++ b/aa/aa.json @@ -0,0 +1,84 @@ +{ + "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 |