Repository navigation
[BE-question-template] 질문 템플릿 생성·조회·수정 API - #23
Merged
Merged
Conversation
- POST/GET/GET:id/PATCH /question-templates (대표 전용) - 질문 유형별 제약조건 위반은 422 INVALID_QUESTION_SET - PATCH 시 질문이 바뀌면 질문 교체 + version 1 증가, 요청 버전 불일치는 409 TEMPLATE_VERSION_CONFLICT - 목록은 상태·검색어 필터와 페이지네이션 지원 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 개요
대표가 입사 자기선언에 쓸 질문 템플릿을 만들고 관리하는 API 4개를 추가합니다.
Closes #9
📌 변경 사항
POST /question-templates: 템플릿 생성 (version 1)GET /question-templates: 목록 조회 (status·keyword 필터, 페이지네이션, 최신 수정순)GET /question-templates/:templateId: 상세 조회 (질문 order순)PATCH /question-templates/:templateId: 이름·설명·질문 수정, ARCHIVED 전환📖 프론트 참고
INVALID_QUESTION_SET, 위반 항목은details.errors에{ order, field, message }로 전달version필수, 다르면 409TEMPLATE_VERSION_CONFLICT✅ 검증
👀 리뷰 포인트
question-set.validator.ts)🤖 Generated with Claude Code