Skip to content

맞춤조건 조회

ktyu edited this page Jan 2, 2019 · 15 revisions

맞춤조건 조회

메소드 경로 설명
GET /conds?cond_idx={idx} 맞춤조건 인덱스로 맞춤조건 정보 조회

QueryString 설명

parameter 설명 예시
cond_idx 맞춤조건 인덱스 8

요청 헤더


요청바디



응답 바디

조회 성공

{
    "status": 200,
    "message": "맞춤조건 조회 성공",
    "data": {
        "condIdx": 8,
        "condName": "내맞춤조건1",
        "alert": true,
        "location": {
            "jeonbuk": true,
            "gangwon": true,
            "gwangju": true,
            "ulsan": true,
            "kyungbuk": true,
            "sejong": true,
            "chungbuk": true,
            "kyungnam": true,
            "seoul": true,
            "chungnam": true,
            "daejeon": true,
            "busan": true,
            "jeju": true,
            "daegu": true,
            "aborad": true,
            "kyunggi": true,
            "incheon": true,
            "jeonnam": true
        },
        "age": {
            "forty_more": true,
            "twenty_less": true,
            "twenty_forty": true
        },
        "period": {
            "three_four": false,
            "six_seven": false,
            "one_two": false,
            "seven_more": false,
            "zero_one": true,
            "four_five": false,
            "yet": false,
            "two_three": false,
            "five_six": false
        },
        "field": {
            "a": true,
            "b": true,
            "c": true,
            "d": true,
            "e": true,
            "f": true,
            "g": true,
            "h": true,
            "i": true,
            "j": true,
            "k": true,
            "l": true,
            "m": true,
            "n": true,
            "o": true,
            "p": true,
            "q": true,
            "r": true,
            "s": true,
            "t": true,
            "u": true,
            "v": true
        },
        "advantage": {
            "sole": true,
            "univ": true,
            "woman": true,
            "social": true,
            "disabled": true,
            "togather": true,
            "fourth": true,
            "retry": true
        },
        "busiType": {
            "sole": true,
            "small": true,
            "big": true,
            "pre": true,
            "midsmall": true,
            "midbig": true,
            "tradi": true
        },
        "excCategory": {
            "loan": false,
            "edu": false,
            "know": false,
            "global": false,
            "place": false,
            "make": false,
            "local": false,
            "gov": false
        }
    }
}

해당 인덱스의 맞춤조건이 없는 경우

{
    "status": 400,
    "message": "존재하지 않는 맞춤조건 인덱스 입니다.",
    "data": null
}

헤더에 토큰이 아예 없는 경우

{
    "status": 401,
    "message": "인증 실패: 토큰 없음",
    "data": null
}

토큰이 유효하지 않은 경우 (헤더의 Authorization 키가 존재하지만 토큰 디코딩에 실패)

{
    "status": 403,
    "message": "인가 실패: 유효하지 않은 토큰",
    "data": null
}

서버 내부 에러

{
    "status": 500,
    "message": "서버 내부 에러",
    "data": null
}

데이터베이스 에러

{
    "status": 600,
    "message": "데이터베이스 에러",
    "data": null
}
Clone this wiki locally