Skip to main content

뱃지 디자인 다건조회

뱃지 디자인 다건 조회 (GET)

뱃지 디자인 목록을 조회합니다.

  • Method: GET

  • URL: /badge-designs

  • Query Parameters:

    파라미터타입필수기본값설명
    pagenumberNo1조회할 페이지 번호
    pageSizenumberNo15페이지 당 항목 수

Response

{
"statusCode": 200,
"message": "뱃지 디자인 리스트가 조회되었습니다.",
"badgeDesigns": [
{
"id": 83,
"name": "Template Design A",
"main_color": "#2e6227",
"sub_color": "#d4e45e",
"extra_color_1": "#000000",
"extra_color_2": "#000000",
"layout_json": [
{
"id": "image-5497",
"controlType": "image",
"designType": "image",
"src": "https://...",
"background": "transparent",
"width": 600,
"height": 600,
"x": 0,
"y": 0,
"order": 1
},...
],
"template_type": "NewBadgeTypeEmpty",
"created_at": "2025-04-09T18:37:39.696Z",
"updated_at": "2025-04-09T18:37:39.696Z"
},
....
],
"totalPages": 5
}

badgeDesigns (object[])

필드명타입설명
idnumberbadge 디자인 고유 id
namestringbadge 디자인 이름
main_colorstring | null메인 색상 메인 색상 (Hex 코드)
sub_colorstring | null서브 색상
extra_color_1string | null추가 색상1
extra_color_2string | null추가 색상2
template_typestring템플릿 타입
layout_jsonobject[]인증서 이미지 생성을 위한 디자인 JSON 배열
created_atstring (ISO8601)badge 디자인 생성일
updated_atstring (ISO8601)badge 디자인 수정일

오류 코드

상태 코드에러메시지상세 설명
400Bad RequestPage must not be less than 1, Page must be a positive number페이지 타입이 올바르지 않은 경우
400Bad RequestPageSize must not be less than 1, PageSize must be a positive number페이지 사이즈 타입이 올바르지 않은 경우
401UnauthorizedInvalid token인증 정보가 올바르지 않은 경우
404Not Found뱃지 디자인 리스트를 찾을 수 없습니다.해당 클럽 도메인의 디자인 데이터가 없을 경우
500Internal Server Error예기치 않은 오류가 발생했습니다.서버 에러

Request Sample

String url = "https://api.test.kolleges.net/open-api/badge-designs";

HttpResponse<String> response = Unirest.get(url + queryParams)
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.header("Authorization", "Bearer " + apiKey)
.asString();

System.out.println("Status: " + response.getStatus());
System.out.println("Response: " + response.getBody());