Create Answer
METHOD
POSTURL EXAMPLE
/gistps/api/v1/answer/:postIdpostId: ๋ต๋ณํ ๊ฒ์๋ฌผ ๊ณ ์ id
REQUEST BODY
name
type
description
userId
long
์์ฑํ๋ ์ ์ id (์๋ฒ์ ์ ์ฅ๋ id -์ซ์)
description
string
๋ด์ฉ
REQUEST BODY EXAMPLE
{
"userId" : 1,
"description" : "์๋
ํ์ธ์ ~ํ ๋ฌธ์ ์ ๋ํ ๋ต๋ณ์
๋๋ค"
}RESPONSE BODY
type
description
Long
์์ฑ๋ ๊ฒ์๊ธ์ ๊ณ ์ id
RESPONSE BODY EXAMPLE (๋ต๋ณ ์ ์์ ์ผ๋ก ์์ฑ)
4
RESPONSE BODY EXAMPLE (๋ต๋ณ ์์ฑ ์คํจ)
-1 or -2 or -3Last updated
Was this helpful?