-
Notifications
You must be signed in to change notification settings - Fork 0
[GET] ์ง๋ฌธ
NewWisdom edited this page Nov 21, 2020
·
4 revisions
METHOD | PATH | EXPLANATION |
---|---|---|
GET | /posts/:classId | ๊ฒ์๊ธ์ ๋ํ ์ง๋ฌธ ์์ฒญ |
accessToken : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjgsIm5hbWUiOiLsp4DtmJwiLCJpYXQiOjE1OTcxMTEzNDMsImV4cCI6MTU5NzExNDk0MywiaXNzIjoiZHVrc3VuZyJ9.VE1M6XqCZyrXZry9GWrvmuiMHfSK6BM9iizEkJ3nzoc"
KEY | EXPLANATION | TYPE |
---|---|---|
classId | ์ผ๊ตด ๋ถ์์ ๊ณ ์ ๋ฒํธ | INTEGER |
๊ฒ์๊ธ์ ๋ํ ์ง๋ฌธ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต
- questionId๋ฅผ ๊ฐ์ง๊ณ ์๋ค๊ฐ [POST] /posts ์์ฒญ์ ํจ๊ป ๋ณด๋ด์ผ ํจ.
{
"status": 200,
"success": true,
"message": "๊ฒ์๊ธ์ ๋ํ ์ง๋ฌธ ๊ฐ์ ธ์ค๊ธฐ ์ฑ๊ณต",
"data": [
{
"questionId": 10,
"questionText": "๋์๋ฅผ ๋ชป ๋งก๋๋ค๋ฉด ์ด๋จ ๊ฒ ๊ฐ๋์? "
}
]
}
๊ฒ์๊ธ์ ๋ํ ์ง๋ฌธ ๊ฐ์ ธ์ค๊ธฐ ์คํจ
{
"status": 400,
"success": false,
"message": "๊ฒ์๊ธ์ ๋ํ ์ง๋ฌธ์ด ์์ต๋๋ค."
}
INTERNAL SERVER ERROR
{
"status": 500,
"message": "์๋ฒ ๋ด๋ถ ์๋ฌ"
}