Legacy API
Community API
커뮤니티 게시판 API
Community API
Deprecated: 이 API는 레거시입니다.
커뮤니티 게시판 API입니다.
Base URL: /community
엔드포인트 목록
게시글
| 메서드 | 경로 | 설명 | 인증 |
|---|---|---|---|
POST | /community/insert | 게시글 생성 | 필요 |
GET | /community/sel | 전체 게시글 조회 | 필요 |
DELETE | /community/del/{no} | 게시글 삭제 | 필요 |
PATCH | /community/update | 게시글 수정 | 필요 |
PUT | /community/update/notification/{no} | 상단 고정 | 필요 |
댓글
| 메서드 | 경로 | 설명 | 인증 |
|---|---|---|---|
GET | /community/comment/all | 댓글 조회 | 필요 |
POST | /community/comment/update | 댓글 작성 | 필요 |
POST | /community/comment/delete | 댓글 삭제 | 필요 |
API 상세
게시글 생성
HTTP 요청
POST /community/insert
Authorization: Bearer {access_token}
Content-Type: multipart/form-dataRequest Parts
| 파트 | 타입 | 필수 | 설명 |
|---|---|---|---|
data | CommunityDto | 예 | 게시글 데이터 |
images | file[] | 아니오 | 이미지 파일들 |
전체 게시글 조회
HTTP 요청
GET /community/sel?nation={nation}
Authorization: Bearer {access_token}Query Parameters
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
nation | string | 예 | 국가 코드 |
댓글 조회
HTTP 요청
GET /community/comment/all?community_no={community_no}
Authorization: Bearer {access_token}댓글 작성
HTTP 요청
POST /community/comment/update
Authorization: Bearer {access_token}
Content-Type: application/jsonRequest Body
{
"community_no": 123,
"nickname": "사용자명",
"content": "댓글 내용",
"writer_id": "user123"
}