글 조회 - Goldfish-Server/3sec-Goldfish GitHub Wiki

메소드 경로 요청 사항
GET /post 글 조회

↗️ Request Header

{
    "Content-Type":"application/json"
}

↗️ Request Body

↘️ Response

🔵 success

{
    "status": "200",
    "success": "성공",
    "message": "글조회 성공",
    "data": [
        {
            "PostIdx": 1,
            "postText": "text1",
            "likeCount": 8,
            "createdAt": null,
            "updatedAt": "2021-05-22T20:08:17.000Z",
            "GroupIdx": null
        },
        {
            "PostIdx": 2,
            "postText": "text2",
            "likeCount": 0,
            "createdAt": "2021-05-22T19:23:18.000Z",
            "updatedAt": "2021-05-22T19:23:18.000Z",
            "GroupIdx": null
        },
        {
            "PostIdx": 3,
            "postText": "text3",
            "likeCount": 0,
            "createdAt": "2021-05-22T19:24:57.000Z",
            "updatedAt": "2021-05-22T19:24:57.000Z",
            "GroupIdx": null
        },
        {
            "PostIdx": 4,
            "postText": "text4",
            "likeCount": 0,
            "createdAt": "2021-05-22T19:27:30.000Z",
            "updatedAt": "2021-05-22T19:27:30.000Z",
            "GroupIdx": null
        }
        ...
    ]
}

❌ Fail

  • 서버 에러
{
    "status": 500,
    "success": false,
    "message": "서버 내부 에러"
}