summaryrefslogtreecommitdiff
path: root/api/miniaa.json
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-03 13:47:17 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-03 13:47:17 +0200
commit4121f15eb7b36170a0a325944982aa2aa133494b (patch)
tree626c3bb50d919bd535ce042fc21891fe27eaa41e /api/miniaa.json
parenteb61d73dd2643a060f4b7c93ef3fb58ed7fdb2f3 (diff)
adapt api file with new route
Diffstat (limited to 'api/miniaa.json')
-rw-r--r--api/miniaa.json84
1 files changed, 84 insertions, 0 deletions
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