Create Answer

METHOD

POST

URL EXAMPLE

/gistps/api/v1/answer/:postId

postId: ๋‹ต๋ณ€ํ•  ๊ฒŒ์‹œ๋ฌผ ๊ณ ์œ  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 -3

Last updated

Was this helpful?