Get a Survey (설문 상세 조회)
특정 설문의 상세 정보와 질문 목록을 조회합니다.
엔드포인트: GET /api/v1/surveys/{surveyId}
Path Parameters:
파라미터
타입
설명
surveyId
string
조회할 설문의 ID
Response:
{
"code": 200,
"message": "요청이 성공적으로 완료되었습니다.",
"survey": {
"id": string,
"title": string,
"description": string,
"thumbnailImageUrl": string,
"tags": string[],
"questionCount": number,
"isOfficial": boolean,
"participantCount": number,
"category": {
"id": number,
"name": string
},
"isPrivate": boolean,
"questions": [
{
"type": "MULTIPLE_CHOICE",
"id": string,
"title": string,
"description": string,
"imageUrl": string,
"isChoiceRandom": boolean,
"isMultipleAnswer": boolean,
"choiceType": "TEXT",
"orderNumber": number,
"choiceList": [
{
"id": string,
"content": string,
"imageUrl": string,
"orderNumber": number
}
]
},
{
"type": "DROPDOWN",
"id": string,
"title": string,
"description": boolean,
"orderNumber": number,
"isChoiceRandom": boolean,
"choiceList": [
{
"type": "TEXT",
"id": string,
"title": string,
"description": string,
"imageUrl": string,
"orderNumber": number
}
]
}
}
}
상태 코드
코드
설명
200
요청이 성공적으로 처리됨
400
잘못된 요청 (파라미터 오류 등)
401
인증 오류
404
프로젝트 또는 설문을 찾을 수 없음
Last updated