Skip to content

Commit

Permalink
Merge pull request #705 from Vafilor/fix/rename.auth
Browse files Browse the repository at this point in the history
fix: rename LogIn request to GetAccessToken
  • Loading branch information
Vafilor authored Nov 3, 2020
2 parents ff0526d + a405e8b commit 74bc140
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 518 deletions.
115 changes: 29 additions & 86 deletions api/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
]
}
},
"/apis/v1beta1/auth/login": {
"/apis/v1beta1/auth/get_access_token": {
"post": {
"operationId": "LogIn",
"operationId": "GetAccessToken",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/LogInResponse"
"$ref": "#/definitions/GetAccessTokenResponse"
}
},
"default": {
Expand All @@ -77,7 +77,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/LogInRequest"
"$ref": "#/definitions/GetAccessTokenRequest"
}
}
],
Expand All @@ -87,38 +87,6 @@
"security": []
}
},
"/apis/v1beta1/auth/token": {
"post": {
"operationId": "IsValidToken",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/IsValidTokenResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/grpc.gateway.runtime.Error"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/IsValidTokenRequest"
}
}
],
"tags": [
"AuthService"
]
}
},
"/apis/v1beta1/config": {
"get": {
"operationId": "GetConfig",
Expand Down Expand Up @@ -2964,6 +2932,31 @@
}
}
},
"GetAccessTokenRequest": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"GetAccessTokenResponse": {
"type": "object",
"properties": {
"domain": {
"type": "string"
},
"accessToken": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"GetConfigResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3048,31 +3041,6 @@
}
}
},
"IsValidTokenRequest": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"IsValidTokenResponse": {
"type": "object",
"properties": {
"domain": {
"type": "string"
},
"token": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"KeyValue": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3354,31 +3322,6 @@
}
}
},
"LogInRequest": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"tokenHash": {
"type": "string"
}
}
},
"LogInResponse": {
"type": "object",
"properties": {
"domain": {
"type": "string"
},
"token": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"Metric": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 74bc140

Please sign in to comment.