Fix some issues
[multicloud/framework.git] / multivimbroker / multivimbroker / swagger / multivim.identity.swagger.json
1 {
2     "swagger": "2.0",
3     "info": {
4         "version": "1.0.0",
5         "title": "MultiVIM Service rest API"
6     },
7     "basePath": "/openoapi/multivim/v1/",
8     "tags": [
9         {
10             "name": "MultiVIM services"
11         }
12     ],
13     "paths": {
14         "/{vimid}/identity/v3": {
15             "get": {
16                 "tags": [
17                     "vim identity"
18                 ],
19                 "summary": "query vim  identity  server ",
20                 "description": "query vim  identity  server",
21                 "operationId": "query_vim_identity",
22                 "consumes": [
23                     "application/json"
24                 ],
25                 "produces": [
26                     "application/json"
27                 ],
28                 "parameters": [
29                     {
30                         "name": "vimid",
31                         "in": "path",
32                         "description": "vim instance id",
33                         "required": true,
34                         "type": "string"
35                     }
36
37
38                 ],
39                 "responses": {
40                     "200": {
41                         "description": "successful operation",
42                         "schema": {
43                             "$ref": "#/definitions/IdentityInfo"
44                         }
45                     },
46                     "404": {
47                         "description": "the vim id is wrong"
48                     },
49                     "500": {
50                         "description": "the vim tenants is not accessable"
51                     }
52                 }
53             }
54         },
55         "/{vimid}/identity/v3/auth/tokens":{
56            "post": {
57                 "tags": [
58                     "vim identity"
59                 ],
60                 "summary": "get  vim token ",
61                 "description": "get  vim token",
62                 "operationId": "get_vim_token",
63                 "consumes": [
64                     "application/json"
65                 ],
66                 "produces": [
67                     "application/json"
68                 ],
69                 "parameters": [
70                     {
71                         "name": "vimid",
72                         "in": "path",
73                         "description": "vim instance id",
74                         "required": true,
75                         "type": "string"
76                     },
77                     {
78                       "name": "body",
79                       "in": "body",
80                       "description": "authrication data",
81                       "required": true,
82                       "type": "string"
83                     }
84
85                 ],
86                 "responses": {
87                     "200": {
88                         "description": "successful operation",
89                         "schema": {
90                             "$ref": "#/definitions/TokenInfo"
91                         }
92                     },
93                     "404": {
94                         "description": "the vim id is wrong"
95                     },
96                     "500": {
97                         "description": "the vim tenants is not accessable"
98                     }
99                 }
100             }
101         }
102     },
103     "definitions": {
104         "IdentityInfo": {
105             "type": "object",
106             "required": [
107                 "href",
108                 "id"
109             ],
110             "properties": {
111                 "href": {
112                     "type": "string",
113                     "description": "keystone url"
114                 },
115                 "id": {
116                     "type": "string",
117                     "description": "keystone version"
118                 }
119             }
120         },
121         "TokenInfo": {
122             "type": "object",
123             "required": [
124                 "value",
125                 "endpoints"
126             ],
127             "properties": {
128                 "value": {
129                     "type": "string",
130                     "description": "token uuid"
131                 },
132                 "endpoints": {
133                     "type": "string",
134                     "description": "serivce endpoints"
135                 }
136             }
137         }
138     }
139 }
140
141
142
143
144
145