Skip to content

Commit 74bc140

Browse files
authored
Merge pull request #705 from Vafilor/fix/rename.auth
fix: rename LogIn request to GetAccessToken
2 parents ff0526d + a405e8b commit 74bc140

File tree

6 files changed

+144
-518
lines changed

6 files changed

+144
-518
lines changed

api/api.swagger.json

Lines changed: 29 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
]
5555
}
5656
},
57-
"/apis/v1beta1/auth/login": {
57+
"/apis/v1beta1/auth/get_access_token": {
5858
"post": {
59-
"operationId": "LogIn",
59+
"operationId": "GetAccessToken",
6060
"responses": {
6161
"200": {
6262
"description": "A successful response.",
6363
"schema": {
64-
"$ref": "#/definitions/LogInResponse"
64+
"$ref": "#/definitions/GetAccessTokenResponse"
6565
}
6666
},
6767
"default": {
@@ -77,7 +77,7 @@
7777
"in": "body",
7878
"required": true,
7979
"schema": {
80-
"$ref": "#/definitions/LogInRequest"
80+
"$ref": "#/definitions/GetAccessTokenRequest"
8181
}
8282
}
8383
],
@@ -87,38 +87,6 @@
8787
"security": []
8888
}
8989
},
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-
},
12290
"/apis/v1beta1/config": {
12391
"get": {
12492
"operationId": "GetConfig",
@@ -2964,6 +2932,31 @@
29642932
}
29652933
}
29662934
},
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+
},
29672960
"GetConfigResponse": {
29682961
"type": "object",
29692962
"properties": {
@@ -3048,31 +3041,6 @@
30483041
}
30493042
}
30503043
},
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-
},
30763044
"KeyValue": {
30773045
"type": "object",
30783046
"properties": {
@@ -3354,31 +3322,6 @@
33543322
}
33553323
}
33563324
},
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-
},
33823325
"Metric": {
33833326
"type": "object",
33843327
"properties": {

0 commit comments

Comments
 (0)