diff --git a/api/swagger/docs.go b/api/swagger/docs.go index 56fa0c75..42dfe176 100644 --- a/api/swagger/docs.go +++ b/api/swagger/docs.go @@ -1924,14 +1924,7 @@ const docTemplate = `{ "Auth" ], "summary": "logout", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.LogoutResponse" - } - } - } + "responses": {} } }, "/clusters": { @@ -11605,12 +11598,6 @@ const docTemplate = `{ "passwordExpired": { "type": "boolean" }, - "projects": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse" - } - }, "role": { "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.RoleIdRoleNameResponse" }, @@ -11621,20 +11608,6 @@ const docTemplate = `{ } } }, - "github_com_openinfradev_tks-api_pkg_domain.LogoutResponse": { - "type": "object", - "properties": { - "ssoUrls": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, "github_com_openinfradev_tks-api_pkg_domain.MandatoryPolicyInfo": { "type": "object", "properties": { @@ -12055,20 +12028,6 @@ const docTemplate = `{ } } }, - "github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse": { - "type": "object", - "properties": { - "projectId": { - "type": "string" - }, - "projectRoleId": { - "type": "string" - }, - "projectRoleName": { - "type": "string" - } - } - }, "github_com_openinfradev_tks-api_pkg_domain.ProjectMemberRequest": { "type": "object", "required": [ diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index 8a58e363..e44189d6 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -1918,14 +1918,7 @@ "Auth" ], "summary": "logout", - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.LogoutResponse" - } - } - } + "responses": {} } }, "/clusters": { @@ -11599,12 +11592,6 @@ "passwordExpired": { "type": "boolean" }, - "projects": { - "type": "array", - "items": { - "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse" - } - }, "role": { "$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.RoleIdRoleNameResponse" }, @@ -11615,20 +11602,6 @@ } } }, - "github_com_openinfradev_tks-api_pkg_domain.LogoutResponse": { - "type": "object", - "properties": { - "ssoUrls": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - }, "github_com_openinfradev_tks-api_pkg_domain.MandatoryPolicyInfo": { "type": "object", "properties": { @@ -12049,20 +12022,6 @@ } } }, - "github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse": { - "type": "object", - "properties": { - "projectId": { - "type": "string" - }, - "projectRoleId": { - "type": "string" - }, - "projectRoleName": { - "type": "string" - } - } - }, "github_com_openinfradev_tks-api_pkg_domain.ProjectMemberRequest": { "type": "object", "required": [ diff --git a/api/swagger/swagger.yaml b/api/swagger/swagger.yaml index 23bff86e..70743dae 100644 --- a/api/swagger/swagger.yaml +++ b/api/swagger/swagger.yaml @@ -1947,25 +1947,12 @@ definitions: $ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.OrganizationResponse' passwordExpired: type: boolean - projects: - items: - $ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse' - type: array role: $ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.RoleIdRoleNameResponse' token: type: string type: object type: object - github_com_openinfradev_tks-api_pkg_domain.LogoutResponse: - properties: - ssoUrls: - additionalProperties: - items: - type: string - type: array - type: object - type: object github_com_openinfradev_tks-api_pkg_domain.MandatoryPolicyInfo: properties: description: @@ -2254,15 +2241,6 @@ definitions: updatedAt: type: string type: object - github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse: - properties: - projectId: - type: string - projectRoleId: - type: string - projectRoleName: - type: string - type: object github_com_openinfradev_tks-api_pkg_domain.ProjectMemberRequest: properties: projectRoleId: @@ -4991,11 +4969,7 @@ paths: description: logout produces: - application/json - responses: - "200": - description: OK - schema: - $ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.LogoutResponse' + responses: {} security: - JWT: [] summary: logout diff --git a/internal/delivery/http/auth.go b/internal/delivery/http/auth.go index 14f35296..f3953183 100644 --- a/internal/delivery/http/auth.go +++ b/internal/delivery/http/auth.go @@ -112,7 +112,6 @@ func (h *AuthHandler) Login(w http.ResponseWriter, r *http.Request) { // @Description logout // @Accept json // @Produce json -// @Success 200 {object} domain.LogoutResponse // @Router /auth/logout [post] // @Security JWT func (h *AuthHandler) Logout(w http.ResponseWriter, r *http.Request) {