Logout
This commit is contained in:
59
docs/docs.go
59
docs/docs.go
@ -52,6 +52,27 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/auth/logout": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"Bearer": []
|
||||
}
|
||||
],
|
||||
"description": "로그아웃하고 Token, Cookie 삭제",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"로그아웃"
|
||||
],
|
||||
"summary": "로그아웃",
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
"/auth/register": {
|
||||
"post": {
|
||||
"description": "회원가입",
|
||||
@ -1319,7 +1340,7 @@ const docTemplate = `{
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/learnsteam_cslms-api_internal_models.Quiz"
|
||||
"$ref": "#/definitions/learnsteam_cslms-api_internal_models.QuizResponse"
|
||||
}
|
||||
},
|
||||
"page": {
|
||||
@ -1459,8 +1480,14 @@ const docTemplate = `{
|
||||
"tag": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "string"
|
||||
},
|
||||
"example": [
|
||||
"Python",
|
||||
"AI",
|
||||
"Robot",
|
||||
"파이썬"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
@ -1498,8 +1525,14 @@ const docTemplate = `{
|
||||
"tag": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "string"
|
||||
},
|
||||
"example": [
|
||||
"Python",
|
||||
"AI",
|
||||
"Robot",
|
||||
"파이썬"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
@ -1867,7 +1900,13 @@ const docTemplate = `{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"example": [
|
||||
1000001,
|
||||
1000002,
|
||||
1000003,
|
||||
1000004
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1975,6 +2014,10 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"example": "choice"
|
||||
},
|
||||
"quiz_id": {
|
||||
"type": "integer",
|
||||
"example": 1000001
|
||||
},
|
||||
"quiz_paper_id": {
|
||||
"type": "integer",
|
||||
"example": 1000001
|
||||
@ -2037,6 +2080,10 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"example": "check"
|
||||
},
|
||||
"quiz_id": {
|
||||
"type": "integer",
|
||||
"example": 1000001
|
||||
},
|
||||
"result": {
|
||||
"type": "string",
|
||||
"example": "success"
|
||||
|
@ -44,6 +44,27 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/auth/logout": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"Bearer": []
|
||||
}
|
||||
],
|
||||
"description": "로그아웃하고 Token, Cookie 삭제",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"로그아웃"
|
||||
],
|
||||
"summary": "로그아웃",
|
||||
"responses": {}
|
||||
}
|
||||
},
|
||||
"/auth/register": {
|
||||
"post": {
|
||||
"description": "회원가입",
|
||||
@ -1311,7 +1332,7 @@
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/learnsteam_cslms-api_internal_models.Quiz"
|
||||
"$ref": "#/definitions/learnsteam_cslms-api_internal_models.QuizResponse"
|
||||
}
|
||||
},
|
||||
"page": {
|
||||
@ -1451,8 +1472,14 @@
|
||||
"tag": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "string"
|
||||
},
|
||||
"example": [
|
||||
"Python",
|
||||
"AI",
|
||||
"Robot",
|
||||
"파이썬"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
@ -1490,8 +1517,14 @@
|
||||
"tag": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "string"
|
||||
},
|
||||
"example": [
|
||||
"Python",
|
||||
"AI",
|
||||
"Robot",
|
||||
"파이썬"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
@ -1859,7 +1892,13 @@
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"example": [
|
||||
1000001,
|
||||
1000002,
|
||||
1000003,
|
||||
1000004
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1967,6 +2006,10 @@
|
||||
"type": "string",
|
||||
"example": "choice"
|
||||
},
|
||||
"quiz_id": {
|
||||
"type": "integer",
|
||||
"example": 1000001
|
||||
},
|
||||
"quiz_paper_id": {
|
||||
"type": "integer",
|
||||
"example": 1000001
|
||||
@ -2029,6 +2072,10 @@
|
||||
"type": "string",
|
||||
"example": "check"
|
||||
},
|
||||
"quiz_id": {
|
||||
"type": "integer",
|
||||
"example": 1000001
|
||||
},
|
||||
"result": {
|
||||
"type": "string",
|
||||
"example": "success"
|
||||
|
@ -146,7 +146,7 @@ definitions:
|
||||
properties:
|
||||
data:
|
||||
items:
|
||||
$ref: '#/definitions/learnsteam_cslms-api_internal_models.Quiz'
|
||||
$ref: '#/definitions/learnsteam_cslms-api_internal_models.QuizResponse'
|
||||
type: array
|
||||
page:
|
||||
example: 1
|
||||
@ -244,8 +244,13 @@ definitions:
|
||||
example: "on"
|
||||
type: string
|
||||
tag:
|
||||
example:
|
||||
- Python
|
||||
- AI
|
||||
- Robot
|
||||
- 파이썬
|
||||
items:
|
||||
type: integer
|
||||
type: string
|
||||
type: array
|
||||
title:
|
||||
example: 퀴즈 시트 제목
|
||||
@ -272,8 +277,13 @@ definitions:
|
||||
example: "on"
|
||||
type: string
|
||||
tag:
|
||||
example:
|
||||
- Python
|
||||
- AI
|
||||
- Robot
|
||||
- 파이썬
|
||||
items:
|
||||
type: integer
|
||||
type: string
|
||||
type: array
|
||||
title:
|
||||
example: 퀴즈 시트 제목
|
||||
@ -533,6 +543,11 @@ definitions:
|
||||
example: 1000002
|
||||
type: integer
|
||||
users:
|
||||
example:
|
||||
- 1000001
|
||||
- 1000002
|
||||
- 1000003
|
||||
- 1000004
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
@ -612,6 +627,9 @@ definitions:
|
||||
question_type:
|
||||
example: choice
|
||||
type: string
|
||||
quiz_id:
|
||||
example: 1000001
|
||||
type: integer
|
||||
quiz_paper_id:
|
||||
example: 1000001
|
||||
type: integer
|
||||
@ -657,6 +675,9 @@ definitions:
|
||||
question_type:
|
||||
example: check
|
||||
type: string
|
||||
quiz_id:
|
||||
example: 1000001
|
||||
type: integer
|
||||
result:
|
||||
example: success
|
||||
type: string
|
||||
@ -706,6 +727,19 @@ paths:
|
||||
summary: 사용자 로그인 로그인
|
||||
tags:
|
||||
- 로그인
|
||||
/auth/logout:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 로그아웃하고 Token, Cookie 삭제
|
||||
produces:
|
||||
- application/json
|
||||
responses: {}
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: 로그아웃
|
||||
tags:
|
||||
- 로그아웃
|
||||
/auth/register:
|
||||
post:
|
||||
consumes:
|
||||
|
Reference in New Issue
Block a user