diff --git a/docs/docs.go b/docs/docs.go index 7d5c224..804f16e 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -452,15 +452,6 @@ const docTemplate = `{ "User" ], "summary": "User logout", - "parameters": [ - { - "type": "string", - "description": "Bearer [token]", - "name": "Authorization", - "in": "header", - "required": true - } - ], "responses": { "200": { "description": "Logout successful", @@ -518,7 +509,7 @@ const docTemplate = `{ } }, "/users/refresh_token": { - "post": { + "get": { "description": "Refreshes the access and refresh tokens for a user", "consumes": [ "application/json" @@ -530,17 +521,6 @@ const docTemplate = `{ "Authentication" ], "summary": "Refresh User Token", - "parameters": [ - { - "description": "Refresh Token", - "name": "refreshToken", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/bikefest_pkg_model.RefreshTokenRequest" - } - } - ], "responses": { "200": { "description": "Access and Refresh Tokens successfully generated", @@ -748,17 +728,6 @@ const docTemplate = `{ } } }, - "bikefest_pkg_model.RefreshTokenRequest": { - "type": "object", - "required": [ - "refresh_token" - ], - "properties": { - "refresh_token": { - "type": "string" - } - } - }, "bikefest_pkg_model.Response": { "type": "object", "properties": { diff --git a/docs/swagger.json b/docs/swagger.json index e19aa49..e31b89b 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -441,15 +441,6 @@ "User" ], "summary": "User logout", - "parameters": [ - { - "type": "string", - "description": "Bearer [token]", - "name": "Authorization", - "in": "header", - "required": true - } - ], "responses": { "200": { "description": "Logout successful", @@ -507,7 +498,7 @@ } }, "/users/refresh_token": { - "post": { + "get": { "description": "Refreshes the access and refresh tokens for a user", "consumes": [ "application/json" @@ -519,17 +510,6 @@ "Authentication" ], "summary": "Refresh User Token", - "parameters": [ - { - "description": "Refresh Token", - "name": "refreshToken", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/bikefest_pkg_model.RefreshTokenRequest" - } - } - ], "responses": { "200": { "description": "Access and Refresh Tokens successfully generated", @@ -737,17 +717,6 @@ } } }, - "bikefest_pkg_model.RefreshTokenRequest": { - "type": "object", - "required": [ - "refresh_token" - ], - "properties": { - "refresh_token": { - "type": "string" - } - } - }, "bikefest_pkg_model.Response": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index f8e5d3e..a8d5cb9 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -61,13 +61,6 @@ definitions: msg: type: string type: object - bikefest_pkg_model.RefreshTokenRequest: - properties: - refresh_token: - type: string - required: - - refresh_token - type: object bikefest_pkg_model.Response: properties: data: {} @@ -437,12 +430,6 @@ paths: consumes: - application/json description: Logs out a user by invalidating their authentication token - parameters: - - description: Bearer [token] - in: header - name: Authorization - required: true - type: string produces: - application/json responses: @@ -485,17 +472,10 @@ paths: tags: - User /users/refresh_token: - post: + get: consumes: - application/json description: Refreshes the access and refresh tokens for a user - parameters: - - description: Refresh Token - in: body - name: refreshToken - required: true - schema: - $ref: '#/definitions/bikefest_pkg_model.RefreshTokenRequest' produces: - application/json responses: