diff options
author | Huang Haibin <haibin.huang@intel.com> | 2018-02-27 22:43:10 +0800 |
---|---|---|
committer | Huang Haibin <haibin.huang@intel.com> | 2018-02-28 16:50:51 +0800 |
commit | ec6574daf067ae7ad98e7fb6e3ddf4c88d899e36 (patch) | |
tree | 8fb063e38bbef0bf380f2b39358d8167ad7b2f46 /share/newton_base/swagger/multicloud.identity.swagger.json | |
parent | b8cf1e980b211c21174a1eaa61c51512106efb7d (diff) |
Move swagger from newton to newton_base
Change-Id: I35ed7b54d89d9c9eb6df94c7aae261eba7cc236d
Issue-ID: MULTICLOUD-138
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'share/newton_base/swagger/multicloud.identity.swagger.json')
-rw-r--r-- | share/newton_base/swagger/multicloud.identity.swagger.json | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/share/newton_base/swagger/multicloud.identity.swagger.json b/share/newton_base/swagger/multicloud.identity.swagger.json new file mode 100644 index 00000000..b8020648 --- /dev/null +++ b/share/newton_base/swagger/multicloud.identity.swagger.json @@ -0,0 +1,59 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "MultiCloud Identity Proxy rest API" + }, + "basePath": "/api/multicloud-newton/v0/", + "tags": [ + { + "name": "MultiCloud services" + } + ], + "paths": { + "/{vimid}/identity/v3/auth/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": { + "200": { + "description": "successful operation", + "type": "string" + }, + "404": { + "description": "the vim id or tenant name is wrong" + }, + "500": { + "description": "the vim instance is not accessable" + } + } + } + } + } +} |