summaryrefslogtreecommitdiffstats
path: root/share/newton_base/swagger/multicloud.identity.swagger.json
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-05-29 23:10:53 +0800
committerYun Huang <yun.huang@windriver.com>2018-05-29 23:10:53 +0800
commit785f119effd057e0e5e44ab2e1d1f3ec90c5ce5d (patch)
tree86059c6690d6cb1dea7e90436171309a80c94f1b /share/newton_base/swagger/multicloud.identity.swagger.json
parent5b67d58f7d59eaf81f15c21eef12a46c9d7e7688 (diff)
Enable swagger UI for proxied API
Change-Id: I46b561f5547d2c11cfd45bfc0ad0f06ace53c5d5 Issue-ID: MULTICLOUD-240 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'share/newton_base/swagger/multicloud.identity.swagger.json')
-rw-r--r--share/newton_base/swagger/multicloud.identity.swagger.json46
1 files changed, 45 insertions, 1 deletions
diff --git a/share/newton_base/swagger/multicloud.identity.swagger.json b/share/newton_base/swagger/multicloud.identity.swagger.json
index b8020648..e2aeccc3 100644
--- a/share/newton_base/swagger/multicloud.identity.swagger.json
+++ b/share/newton_base/swagger/multicloud.identity.swagger.json
@@ -42,7 +42,51 @@
}
],
"responses": {
- "200": {
+ "201": {
+ "description": "successful operation",
+ "type": "string"
+ },
+ "404": {
+ "description": "the vim id or tenant name is wrong"
+ },
+ "500": {
+ "description": "the vim instance is not accessable"
+ }
+ }
+ }
+ },
+ "/{vimid}/identity/v2.0/tokens": {
+ "post": {
+ "tags": [
+ "MultiCloud Identity Proxy"
+ ],
+ "summary": "Authenticate and get Catalog of endpoints",
+ "description": "Authenticate to get token and catalog of service endpoints",
+ "operationId": "authenticate",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "vimid",
+ "in": "path",
+ "description": "vim instance id, composed by {cloud-owner}_{cloud-region-id}",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "tenant_name",
+ "in": "body",
+ "description": "tenant name",
+ "required": false,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "201": {
"description": "successful operation",
"type": "string"
},