Untitled

RequestParam

sortBy 0 → 최신순

sortBy 1 → 조회순

Untitled

category→숫자로 넣어주세요.. 스트링으로 받는법은 모르겠넹 .. 통일성 없어서 죄송합니다.

RESTAURANT(0, "맛집"),
    FACILITY(1, "시설"),
    SHARE_INFORMATION(2, "정보공유"),
    TOGETHER(3, "같이해요"),
    COMMUNICATION(4, "소통해요"),
    ETC(5, "기타");

Response

{
    "isSuccess": true,
    "code": "NEIGHBORHOOD_200",
    "message": "동네 게시글 조회 성공",
    "result": []
}
{
    "isSuccess": true,
    "code": "NEIGHBORHOOD_200",
    "message": "동네 게시글 조회 성공",
    "result": [
        {
            "id": 6,
            "dong": "상도동",
            "neighborhoodPostCategory": "맛집",
            "title": "TestTitle",
            "content": "TestContent",
            "imageUrl": "image1.jpg",
            "createdAt": "2023-11-27T01:24:55.134440",
            "view": 0
        },
        {
            "id": 7,
            "dong": "상도동",
            "neighborhoodPostCategory": "맛집",
            "title": "TestTitle",
            "content": "TestContent",
            "imageUrl": "image1.jpg",
            "createdAt": "2023-11-27T01:26:14.845994",
            "view": 0
        }
    ]
}