From eb61d73dd2643a060f4b7c93ef3fb58ed7fdb2f3 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 3 Jun 2015 13:41:44 +0200 Subject: mv aa to api --- aa/aa.json | 84 ------------------------------------------------------------- api/aa.json | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ config.ru | 2 +- 3 files changed, 85 insertions(+), 85 deletions(-) delete mode 100644 aa/aa.json create mode 100644 api/aa.json diff --git a/aa/aa.json b/aa/aa.json deleted file mode 100644 index 086d526..0000000 --- a/aa/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/aa.json b/api/aa.json new file mode 100644 index 0000000..086d526 --- /dev/null +++ b/api/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 diff --git a/config.ru b/config.ru index 4b79b9c..58d2ca2 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,4 @@ -SERVICE = 'aa' +SERVICE = 'miniaa' require 'bundler' Bundler.require require './application.rb' -- cgit v1.2.3