summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-25 15:58:25 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-25 15:58:25 +0200
commite7128f0c9792d8b7c6ddbf391c277bd562878fd3 (patch)
tree715fa367e12468b8bd9a6d4f582442c70497d89b
parent659bf82d6faa02e38e1e8ab831a5c9978b12e30f (diff)
API: refineHEADmaster
-rw-r--r--api/miniaa.json45
1 files changed, 34 insertions, 11 deletions
diff --git a/api/miniaa.json b/api/miniaa.json
index f0bd702..572e41a 100644
--- a/api/miniaa.json
+++ b/api/miniaa.json
@@ -2,7 +2,13 @@
"swagger": "2.0",
"info": {
"version": "1.0.0",
- "title": "OpenTox OpenSSO"
+ "title": "OpenTox OpenSSO Authentication",
+ "description": "Minimal service to generate and destroy authentication-token.",
+ "contact": {
+ "name": "Micha Rautenberg, in silico toxicology",
+ "url": "http://www.in-silico.ch",
+ "email": "support@in-silico.ch"
+ }
},
"host": "enm.in-silico.ch",
"schemes": [
@@ -11,14 +17,14 @@
"paths": {
"/miniaa/authenticate": {
"post": {
+ "tags": [
+ "authentication"
+ ],
"description": "Authentication against OpenSSO. Returns token. Requires Username and Password.",
"operationId": "login",
"consumes": [
"text/plain"
],
- "tags": [
- "authentication"
- ],
"produces": [
"text/plain"
],
@@ -41,13 +47,13 @@
],
"responses": {
"200": {
- "description": "Successful response"
+ "$ref": "#/responses/200"
},
"400": {
- "description": "Bad Request"
+ "$ref": "#/responses/400"
},
"401": {
- "description": "Unauthorized"
+ "$ref": "#/responses/401"
}
}
}
@@ -76,16 +82,33 @@
],
"responses": {
"200": {
- "description": "Successful response"
+ "$ref": "#/responses/200"
},
"400": {
- "description": "Bad Request"
+ "$ref": "#/responses/400"
},
"401": {
- "description": "Unauthorized"
+ "$ref": "#/responses/401"
}
}
}
}
- }
+ },
+ "responses": {
+ "200": {
+ "description": "OK"
+ },
+ "400": {
+ "description": "Bad Request"
+ },
+ "401": {
+ "description": "Unauthorized"
+ }
+ },
+ "tags": [
+ {
+ "name": "authentication",
+ "description": "minimal Authentication service"
+ }
+ ]
} \ No newline at end of file