File tree Expand file tree Collapse file tree 6 files changed +144
-518
lines changed Expand file tree Collapse file tree 6 files changed +144
-518
lines changed Original file line number Diff line number Diff line change 54
54
]
55
55
}
56
56
},
57
- "/apis/v1beta1/auth/login " : {
57
+ "/apis/v1beta1/auth/get_access_token " : {
58
58
"post" : {
59
- "operationId" : " LogIn " ,
59
+ "operationId" : " GetAccessToken " ,
60
60
"responses" : {
61
61
"200" : {
62
62
"description" : " A successful response." ,
63
63
"schema" : {
64
- "$ref" : " #/definitions/LogInResponse "
64
+ "$ref" : " #/definitions/GetAccessTokenResponse "
65
65
}
66
66
},
67
67
"default" : {
77
77
"in" : " body" ,
78
78
"required" : true ,
79
79
"schema" : {
80
- "$ref" : " #/definitions/LogInRequest "
80
+ "$ref" : " #/definitions/GetAccessTokenRequest "
81
81
}
82
82
}
83
83
],
87
87
"security" : []
88
88
}
89
89
},
90
- "/apis/v1beta1/auth/token" : {
91
- "post" : {
92
- "operationId" : " IsValidToken" ,
93
- "responses" : {
94
- "200" : {
95
- "description" : " A successful response." ,
96
- "schema" : {
97
- "$ref" : " #/definitions/IsValidTokenResponse"
98
- }
99
- },
100
- "default" : {
101
- "description" : " An unexpected error response" ,
102
- "schema" : {
103
- "$ref" : " #/definitions/grpc.gateway.runtime.Error"
104
- }
105
- }
106
- },
107
- "parameters" : [
108
- {
109
- "name" : " body" ,
110
- "in" : " body" ,
111
- "required" : true ,
112
- "schema" : {
113
- "$ref" : " #/definitions/IsValidTokenRequest"
114
- }
115
- }
116
- ],
117
- "tags" : [
118
- " AuthService"
119
- ]
120
- }
121
- },
122
90
"/apis/v1beta1/config" : {
123
91
"get" : {
124
92
"operationId" : " GetConfig" ,
2964
2932
}
2965
2933
}
2966
2934
},
2935
+ "GetAccessTokenRequest" : {
2936
+ "type" : " object" ,
2937
+ "properties" : {
2938
+ "username" : {
2939
+ "type" : " string"
2940
+ },
2941
+ "token" : {
2942
+ "type" : " string"
2943
+ }
2944
+ }
2945
+ },
2946
+ "GetAccessTokenResponse" : {
2947
+ "type" : " object" ,
2948
+ "properties" : {
2949
+ "domain" : {
2950
+ "type" : " string"
2951
+ },
2952
+ "accessToken" : {
2953
+ "type" : " string"
2954
+ },
2955
+ "username" : {
2956
+ "type" : " string"
2957
+ }
2958
+ }
2959
+ },
2967
2960
"GetConfigResponse" : {
2968
2961
"type" : " object" ,
2969
2962
"properties" : {
3048
3041
}
3049
3042
}
3050
3043
},
3051
- "IsValidTokenRequest" : {
3052
- "type" : " object" ,
3053
- "properties" : {
3054
- "username" : {
3055
- "type" : " string"
3056
- },
3057
- "token" : {
3058
- "type" : " string"
3059
- }
3060
- }
3061
- },
3062
- "IsValidTokenResponse" : {
3063
- "type" : " object" ,
3064
- "properties" : {
3065
- "domain" : {
3066
- "type" : " string"
3067
- },
3068
- "token" : {
3069
- "type" : " string"
3070
- },
3071
- "username" : {
3072
- "type" : " string"
3073
- }
3074
- }
3075
- },
3076
3044
"KeyValue" : {
3077
3045
"type" : " object" ,
3078
3046
"properties" : {
3354
3322
}
3355
3323
}
3356
3324
},
3357
- "LogInRequest" : {
3358
- "type" : " object" ,
3359
- "properties" : {
3360
- "username" : {
3361
- "type" : " string"
3362
- },
3363
- "tokenHash" : {
3364
- "type" : " string"
3365
- }
3366
- }
3367
- },
3368
- "LogInResponse" : {
3369
- "type" : " object" ,
3370
- "properties" : {
3371
- "domain" : {
3372
- "type" : " string"
3373
- },
3374
- "token" : {
3375
- "type" : " string"
3376
- },
3377
- "username" : {
3378
- "type" : " string"
3379
- }
3380
- }
3381
- },
3382
3325
"Metric" : {
3383
3326
"type" : " object" ,
3384
3327
"properties" : {
You can’t perform that action at this time.
0 commit comments