From 81a048cb8a0353bf9306c7ce3ea24f9ee54ba9d3 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 3 Jun 2015 13:19:00 +0200 Subject: initial code for a minimal application to generate and destroy security tokens --- aa/aa.json | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 aa/aa.json (limited to 'aa/aa.json') 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 -- cgit v1.2.3