POST API

๊ฒŒ์‹œ๋ฌผ ์“ฐ๊ธฐ

POST https://Yeollin-jib/post

form-data : image (multipart/form-data)

Request Body

Name
Type
Description

image*

file

contents*

String

title*

String

longitude*

String

dueDate*

String

address*

String

latitude*

String

category1*

String

category2

String

๊ฒŒ์‹œ๋ฌผ ๋ฆฌ์ŠคํŠธ ์กฐํšŒ(์ฒซ ๊ฒŒ์‹œ๋ฌผ ํŽ˜์ด์ง€)

GET https://Yeollin-jib.site/post/page

๊ฒŒ์‹œ๋ฌผ ๋ฆฌ์ŠคํŠธ ์กฐํšŒ (๋ฌดํ•œ์Šคํฌ๋กค)

GET https://Yeollin-jib/post/page/:postId

Path Parameters

Name
Type
Description

postId

params

Headers

Name
Type
Description

AccessToken

String

// Some code

์œ ์ €๊ฐ€ ์ž‘์„ฑํ•œ ๊ฒŒ์‹œ๋ฌผ ์ „์ฒด ์กฐํšŒ (๋งˆ์ดํŽ˜์ด์ง€ ๋‚ด๊ฐ€ ์“ด ๊ธ€)

GET https://Yeollin-jib/post/user

Headers

Name
Type
Description

AccessToken

String

๊ฒŒ์‹œ๋ฌผ ์นดํ…Œ๊ณ ๋ฆฌ๋ณ„ ๋ฆฌ์ŠคํŠธ ์กฐํšŒ

GET https://Yeollin-jib/post/:id

Query Parameters

Name
Type
Description

code1

number

code2

String

๊ฒŒ์‹œ๋ฌผ ์กฐํšŒ (์—ด๋žŒ)

GET https://Yeollin-jib/post/category?code1={}&code2={}

Path Parameters

Name
Type
Description

postId

parmas

๊ฒŒ์‹œ๋ฌผ ์ˆ˜์ • (์ˆ˜์ • ๋ถ€๋ถ„๋งŒ ์ „์†ก)

PATCH https://Yeollin-jib/post/:id

imageDelete(remove), imagePath(save)

Request Body

Name
Type
Description

imageDelete

String

imagePath

String

imagefile

file

title

String

contents

String

address

String

dueDate

String

latitude

String

longitude

String

{
    postId: postId, message: "๊ฒŒ์‹œ๊ธ€์ด ์ˆ˜์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค."
}

๊ฒŒ์‹œ๋ฌผ ์นดํ…Œ๊ณ ๋ฆฌ True False ์ง€์ •

PATCH https://Yeollin-jib/post/category

Request Body

Name
Type
Description

PostId

String

postId

categoryId

String

promise categoryId

{
   "message": "์ •๋ณด ์ˆ˜์ •์ด ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค"
}

๊ฒŒ์‹œ๋ฌผ ์‚ญ์ œ

DELETE https://Yeollin-jib/post/:postid

Path Parameters

Name
Type
Description

postId

prams

Last updated