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