Post

게시물 도메인 API 명세

게시물 등록

게시물 등록

POST http://localhost:8080/posts/write

회원이 게시물을 등록할 수 있도록 합니다.

Headers

Name
Type
Description

token*

String

로그인 시 발급받은 JWT

Request Body

Name
Type
Description

title*

String

게시물 제목

content*

String

게시물 내용

time*

String

원하는 공유 시간대

people*

Integer

원하는 공유 인원

place*

String

원하는 공유 장소

menu*

String

원하는 메

{
    "success": true,
    "response": null,
    "error": null
}

전체 게시물 조회

전체 게시물 조회

GET http://localhost:8080/posts

전체 게시물을 화면에 로딩 합니다.

게시물 조회

게시물 조회

GET http://localhost:8080/posts/{id}

개별 게시물을 조회합니다.

게시물 수정

게시물 수정

PUT http://localhost:8080/posts/update

게시물을 수정합니다.

Headers

Name
Type
Description

token*

String

로그인 시 발급받은 JWT

Request Body

Name
Type
Description

title*

String

게시물 제목

content*

String

게시물 내용

time*

String

원하는 공유 시간대

place*

String

원하는 공유 장소

people*

String

원하는 공유 인원

idx

String

게시물의 고유 아이디

게시물 삭제

게시물 삭제

DELETE http://localhost:8080/posts/delete

게시물을 삭제합니다.

Headers

Name
Type
Description

token*

String

로그인 시 발급받은 JWT

Request Body

Name
Type
Description

idx*

String

게시물의 고유 아이디

Last updated