Yeollin Jib
  • Intro
  • 🖥 API
    • USER API
    • POST API
    • POST STORAGE API
    • COMMENT API
    • CHATTING API
    • INQUIRE API
Powered by GitBook
On this page
  • 게시물 쓰기
  • 게시물 리스트 조회(첫 게시물 페이지)
  • 게시물 리스트 조회 (무한스크롤)
  • 유저가 작성한 게시물 전체 조회 (마이페이지 내가 쓴 글)
  • 게시물 카테고리별 리스트 조회
  • 게시물 조회 (열람)
  • 게시물 수정 (수정 부분만 전송)
  • 게시물 카테고리 True False 지정
  • 게시물 삭제
  1. 🖥 API

POST API

PreviousUSER APINextPOST STORAGE API

Last updated 3 years ago

게시물 쓰기

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

{
    message: "게시글이 생성되지 않았습니다."
}

게시물 리스트 조회(첫 게시물 페이지)

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

{
    message: "더이상 조회할 게시물이 없습니다."
}

게시물 리스트 조회 (무한스크롤)

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

Path Parameters

Name
Type
Description

postId

params

Headers

Name
Type
Description

AccessToken

String

// Some code
{
   message: "더이상 조회할 게시물이 없습니다."
}

유저가 작성한 게시물 전체 조회 (마이페이지 내가 쓴 글)

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

Headers

Name
Type
Description

AccessToken

String

{
    message: "작성한 게시물이 없습니다."
}

게시물 카테고리별 리스트 조회

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

Query Parameters

Name
Type
Description

code1

number

code2

String

{
    message: "작성한 게시물이 없습니다."
}

게시물 조회 (열람)

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

Path Parameters

Name
Type
Description

postId

parmas

{
    message: "이미 삭제된 게시글이거나 없는 게시글 입니다."
}

게시물 수정 (수정 부분만 전송)

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: "게시글이 수정되었습니다."
}
{
    massage: "삭제 되었거나, 존재하지 않는 파일입니다."
}

게시물 카테고리 True False 지정

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

Request Body

Name
Type
Description

PostId

String

postId

categoryId

String

promise categoryId

{
   "message": "정보 수정이 완료되었습니다"
}
{
    message: "서버 에러 입니다."
}

게시물 삭제

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

Path Parameters

Name
Type
Description

postId

prams

{
    message: "삭제하려는 게시물이 없습니다."
}