summary: ์์ ๋ก๊ทธ์ธ ๊ฒฐ๊ณผ๋ฅผ ๋ฐํํฉ๋๋ค.
responses:
200:
schema:
type: object
properties:
permission:
type: boolean
summary: ์ง๋ฌธ ๋ฆฌ์คํธ๋ฅผ ๋ฐํํฉ๋๋ค.
responses:
200:
schema:
type: array
items:
id:
type: number
content:
type: string
type:
type: string
[
{
"id": 6,
"content": "์ค๋ ์ธ์ถ์ ํ๋์?",
"type": "positive"
},
{
"id": 3,
"content": "๋ด์ผ์ด ๊ธฐ๋๋๋์?",
"type": "positive"
},
{
"id": 64,
"content": "์ผ์์ ํ์ถํ๊ณ ์ถ์๊ฐ์?",
"type": "negative"
},
{
"id": 105,
"content": "๊ฒฐ์ ํ๋ ๊ฒ์ด ๋๋ฌด ์ด๋ ต๋ค๊ณ ๋๊ปด์ง๋์?",
"type": "negative"
},
{
"id": 121,
"content": "์ค๋ '์ฌ๋ํด'๋ผ๊ณ ๋งํด๋ณด์๋์?",
"type": "normal"
}
]
summary: ์ง๋ฌธ์ ๊ฒฐ๊ณผ๋ฅผ ์์ฑํฉ๋๋ค.
requestBody:
required: true
content:
application/json:
schema:
properties:
results: array
items:
type: object
properties:
id:
type: number
score:
type: number
responses:
200:
schema:
type: object
properties:
id:
type: number
score:
type: number
creator:
type: number
createAt:
type: string
{ results:
[ { id: 1, score: 1 },
{ id: 2, score: 0 },
{ id: 3, score: 1 },
{ id: 4, score: -1 },
{ id: 5, score: 1 }
]
}
{
"creator": 1,
"score": 2,
"id": 1,
"createAt": "2019-07-06T07:58:06.000Z"
}
summary: ํ ์ฃผ์ ์ ์๋ฅผ ๊ฐ์ ธ์ต๋๋ค. ๋ฐ์ดํฐ๊ฐ ์์ผ๋ฉด -1์ ํ์ํฉ๋๋ค.
requestQuery:
date: string
responses:
200:
schema:
type: object
properties:
month: number
week: number
results: array
items:
type: number
// example: GET /results/week?date=2019-07-06
{
"month": 7,
"week": 1,
"result": [
-1,
-1,
5,
4,
3,
7,
1
]
}
summary: ํ ๋ฌ ๋์์ ์ ์๋ฅผ ๊ฐ์ ธ์ต๋๋ค. ๋ฐ์ดํฐ๊ฐ ์์ผ๋ฉด -1์ ํ์ํฉ๋๋ค.
requestQuery:
date: string
responses:
200:
schema:
type: object
properties:
month: number
year: number
results: array
items:
type: number
// example: GET /results/month?date=2019-07-06
{
"month": 7,
"year": 2019,
"result": [
-1,
-1,
5,
4,
3,
7,
1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1,
-1
]
}
summary: ํ๋์ ์ธ์ฌ์ดํธ๋ฅผ ๊ฐ์ ธ์ต๋๋ค.
requestQuery:
user: number
description: ์ฌ์ฉ์์ ๊ณ ์ ์์ด๋์
๋๋ค
responses:
200:
schema:
type: object
properties:
id: number
content: string
code: string
img: string
{
"id": 14,
"content": "์ ๋ฒ ๋ฌ์ ๋นํด<br />์ด๋ฒ ๋ฌ์ ์กฐ๊ธ ์ฐ์ธํด ๋ณด์ฌ์<br />์ฐฝ๋ฌธ์ ์ด๊ณ ๋ฐ๊นฅ ๊ณต๊ธฐ๋ฅผ ๋ง์
๋ณผ๊น์?",
"code": "BBAA",
"img": ""
}