카드 리스트 조회 - GoldenTicketGroup/GoldenTicketServer GitHub Wiki

카드 리스트 조회(/card)

카드리스트 조회

Request

URL

[GET] ~/card

Header

메소드 파라미터 설명
Content-Type application/json

Body

변수 타입 설명

Response

Body

변수 타입 설명
card_idx Int 카드 인덱스

SUCCESS

{
    "status": 200,
    "success": true,
    "message": "카드 전체 조회 성공",
    "data": [
        {
            "cardIdx": 1,
            "imageUrl": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1562165435447.jpeg",
            "title": "7월 연휴, 공연장 나들이 어때요?",
            "category": "이번 달 공연"
        },
        {
            "cardIdx": 2,
            "imageUrl": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1562284025522.jpeg",
            "title": "7월 연휴, 무더운 더위를 피할 뮤지컬 어때요?",
            "category": "이번 달 뮤지컬"
        }
    ]
}

FAIL : 서버 내부 에러의 경우

{
    "status": 600,
    "success": false,
    "message": "카드 전체 조회 실패"
}