Skip to content

Commit

Permalink
docs: update to latest swagger config
Browse files Browse the repository at this point in the history
  • Loading branch information
peterxcli committed Jan 20, 2024
1 parent 05ce648 commit 6929777
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 85 deletions.
33 changes: 1 addition & 32 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -518,7 +509,7 @@ const docTemplate = `{
}
},
"/users/refresh_token": {
"post": {
"get": {
"description": "Refreshes the access and refresh tokens for a user",
"consumes": [
"application/json"
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
33 changes: 1 addition & 32 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -507,7 +498,7 @@
}
},
"/users/refresh_token": {
"post": {
"get": {
"description": "Refreshes the access and refresh tokens for a user",
"consumes": [
"application/json"
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
22 changes: 1 addition & 21 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6929777

Please sign in to comment.