diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-09-12 07:37:19 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-09-19 10:33:39 +0000 |
commit | b621b6b4b70299a60ad3e26ed6b04450f84b603e (patch) | |
tree | 540adb705c5d3a32dbdf6c797292392bda0af140 /functest/api/swagger/creds.yaml | |
parent | c3c326570b29276d5ac2f703f64fb5f797de62d2 (diff) |
Add swagger support for Rest API
JIRA: FUNCTEST-854
Change-Id: Ic010604d3ba0cc46092cf2a1ae8bb41afa73c920
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/api/swagger/creds.yaml')
-rw-r--r-- | functest/api/swagger/creds.yaml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/functest/api/swagger/creds.yaml b/functest/api/swagger/creds.yaml new file mode 100644 index 00000000..da3b2d90 --- /dev/null +++ b/functest/api/swagger/creds.yaml @@ -0,0 +1,35 @@ +Show credentials + +This api offers the interface to show credentials. +The credentials dict will be returned. +--- +tags: + - Creds +definitions: + Credentials: + type: object + properties: + creds_name: + $ref: '#/definitions/Name' + Name: + type: dict +responses: + 200: + description: Show credentials + schema: + $ref: '#/definitions/Credentials' + examples: + "OS_AUTH_URL": "https://192.16.1.222:5000/v3" + "OS_AUTH_VERSION": "3" + "OS_CACERT": "/home/opnfv/functest/conf/os_cacert" + "OS_ENDPOINT_TYPE": "publicURL" + "OS_IDENTITY_API_VERSION": "3" + "OS_INTERFACE": "publicURL" + "OS_NO_CACHE": "1" + "OS_PASSWORD": "990232e0885da343ac805528522d" + "OS_PROJECT_DOMAIN_NAME": "Default" + "OS_PROJECT_NAME": "admin" + "OS_REGION_NAME": "RegionOne" + "OS_TENANT_NAME": "admin" + "OS_USERNAME": "admin" + "OS_USER_DOMAIN_NAME": "Default" |