Skip to content

test: event 패키지의 API 구현#6

Merged
Yeonu-Kim merged 7 commits into
mainfrom
feat/#5
Jun 15, 2026
Merged

test: event 패키지의 API 구현#6
Yeonu-Kim merged 7 commits into
mainfrom
feat/#5

Conversation

@Yeonu-Kim

Copy link
Copy Markdown
Collaborator

No description provided.

Yeonu-Kim and others added 7 commits June 15, 2026 12:52
- Store, Event, Application, ReviewSubmission ORM 모델 정의
- app/schemas/event.py 스키마 작성 (EventCreateReq, EventResp, ApplicationSummary 등)
- alembic/env.py에 신규 모델 임포트 추가
- tests/conftest.py에 create_store, create_event, create_application 헬퍼 추가
- tests/test_event.py 작성 (TDD — 5개 API에 대한 23개 테스트)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- app/services/event.py 생성 (create_event 서비스 함수)
- app/api/v1/endpoints/event.py 생성 (POST /event 엔드포인트)
- app/api/v1/router.py에 event 라우터 등록
- 소유하지 않은 상점에 이벤트 생성 시 403, 상점 없으면 404 처리

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- list_owner_events 서비스 함수 추가 (Store JOIN으로 본인 상점 이벤트만 조회)
- GET /event/owner 엔드포인트 추가 (/{eventId} 보다 먼저 등록하여 충돌 방지)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- get_event_or_404 서비스 함수 추가
- GET /event/{eventId} 엔드포인트 추가 (인증 불필요, 없으면 404)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- delete_event 서비스 함수 추가 (store join으로 소유권 확인)
- DELETE /event/{eventId} 엔드포인트 추가 (비소유자 403, 없으면 404)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- list_event_applications 서비스 함수 추가 (소유권 확인, 상태 필터, 페이지네이션)
- GET /event/{eventId}/applications 엔드포인트 추가
- status 쿼리 파라미터 소문자 수신 후 대문자로 변환하여 DB 조회
- hasSubmission: review_submissions 테이블 존재 여부로 판단

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Yeonu-Kim Yeonu-Kim linked an issue Jun 15, 2026 that may be closed by this pull request
@Yeonu-Kim Yeonu-Kim merged commit 9857f4e into main Jun 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

event 패키지에 속한 API 구현

1 participant