Create Post
METHOD
POST
URL EXAMPLE
/gistps/api/v1/post
REQUEST BODY
name
type
description
userId
long
์์ฑํ๋ ์ ์ id (์๋ฒ์ ์ ์ฅ๋ id -์ซ์)
title
string
์ ๋ชฉ
description
string
๋ด์ฉ
category
string
์นดํ ๊ณ ๋ฆฌ
REQUEST BODY EXAMPLE
{
"userId" : 1,
"title" : "๊ธฐ์์ฌ ~์ ๋ํด ๊ฑด์ํฉ๋๋ค",
"description" : "~ํ ๋ฌธ์ ํด๊ฒฐ ๋ฐ๋๋๋ค",
"category" : "๋ถ๋ฅ1"
}
RESPONSE BODY
type
description
Long
์์ฑ๋ ๊ฒ์๊ธ์ ๊ณ ์ id
RESPONSE BODY EXAMPLE
4
Last updated
Was this helpful?