openapi: 3.0.3 info: title: AI Interview Coach API description: | AI 기반 맞춤형 면접 질문 및 자기개발 경로 추천 챗봇 API 이 API는 OpenRouter를 통해 다양한 LLM 모델을 활용하여 개인 맞춤형 면접 질문과 자기개발 학습 경로를 제공합니다. ## 주요 기능 - 이력서 정보 기반 맞춤형 면접 질문 생성 - 개인화된 자기개발 학습 경로 추천 - 다양한 LLM 모델 비교 및 선택 - 결과에 대한 피드백 수집 ## 지원 모델 - Anthropic Claude 3.5 Sonnet - OpenAI GPT-4o - Google Gemini Pro 1.5 - Meta Llama 3.1 70B Instruct - 기타 OpenRouter 지원 모델 version: 1.0.0 contact: name: AI Interview Coach Team email: team@aiinterviewcoach.com license: name: MIT url: https://opensource.org/licenses/MIT servers: - url: https://api.aiinterviewcoach.com/v1 description: Production server - url: https://staging-api.aiinterviewcoach.com/v1 description: Staging server - url: http://localhost:8080/v1 description: Local development server tags: - name: Interview description: 면접 질문 및 학습 경로 생성 - name: Models description: 사용 가능한 LLM 모델 정보 - name: Feedback description: 피드백 수집 paths: /generate: post: tags: - Interview summary: 맞춤형 면접 질문 및 학습 경로 생성 description: | 사용자의 이력서 정보를 기반으로 맞춤형 면접 질문과 자기개발 학습 경로를 생성합니다. OpenRouter를 통해 다양한 LLM 모델을 선택할 수 있습니다. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GenerateRequest' examples: 신입개발자: summary: 신입 백엔드 개발자 예시 value: careerSummary: "컴퓨터공학과 졸업 후 개인 프로젝트로 Spring Boot를 활용한 REST API 개발 경험이 있습니다." targetRole: "백엔드 개발자" skills: ["Java", "Spring Boot", "MySQL", "Git"] targetCompany: "스타트업" modelId: "anthropic/claude-3.5-sonnet" 경력개발자: summary: 3년차 풀스택 개발자 예시 value: careerSummary: "3년차 풀스택 개발자로 React, Node.js 기반 웹 서비스 개발 및 운영 경험이 있습니다." targetRole: "시니어 풀스택 개발자" skills: ["React", "Node.js", "TypeScript", "AWS", "Docker"] targetCompany: "테크 기업" modelId: "openai/gpt-4o" responses: '200': description: 성공적으로 생성됨 content: application/json: schema: $ref: '#/components/schemas/GenerateResponse' '400': description: 잘못된 요청 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' examples: invalid_input: summary: 입력 유효성 검사 실패 value: error: code: "INVALID_INPUT" message: "입력 정보가 올바르지 않습니다." details: "careerSummary는 50자 이상 1500자 이하여야 합니다." '429': description: 요청 제한 초과 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' examples: rate_limit: summary: 요청 제한 초과 value: error: code: "RATE_LIMIT_EXCEEDED" message: "요청 제한을 초과했습니다. 잠시 후 다시 시도해주세요." details: "1분당 최대 5회 요청 가능합니다." '500': description: 서버 에러 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' examples: llm_timeout: summary: LLM 응답 시간 초과 value: error: code: "LLM_TIMEOUT" message: "AI 모델 응답 시간이 초과되었습니다." details: "다른 모델을 선택하거나 잠시 후 다시 시도해주세요." /models: get: tags: - Models summary: 사용 가능한 LLM 모델 목록 조회 description: OpenRouter를 통해 사용 가능한 LLM 모델들의 목록과 특성 정보를 반환합니다. responses: '200': description: 모델 목록 조회 성공 content: application/json: schema: $ref: '#/components/schemas/ModelsResponse' /feedback: post: tags: - Feedback summary: 사용자 피드백 제출 description: 생성된 결과에 대한 사용자 피드백을 수집합니다. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/FeedbackRequest' responses: '200': description: 피드백 제출 성공 content: application/json: schema: $ref: '#/components/schemas/FeedbackResponse' '400': description: 잘못된 요청 content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' components: schemas: GenerateRequest: type: object required: - careerSummary - targetRole - skills - modelId properties: careerSummary: type: string description: 경력 요약 (50자 이상 1500자 이하) minLength: 50 maxLength: 1500 example: "3년차 백엔드 개발자로 Spring Boot와 MySQL을 활용한 REST API 개발 경험이 있습니다." targetRole: type: string description: 목표 직무/직군 maxLength: 100 example: "시니어 백엔드 개발자" skills: type: array description: 기술 스킬 목록 items: type: string minItems: 1 maxItems: 20 example: ["Java", "Spring Boot", "MySQL", "Docker", "AWS"] targetCompany: type: string description: 목표 기업/기업 유형 (선택) maxLength: 100 example: "네이버" modelId: type: string description: 사용할 OpenRouter LLM 모델 ID example: "anthropic/claude-3.5-sonnet" enum: - "anthropic/claude-3.5-sonnet" - "anthropic/claude-3-haiku" - "openai/gpt-4o" - "openai/gpt-4o-mini" - "google/gemini-pro-1.5" - "meta-llama/llama-3.1-70b-instruct" - "mistralai/mistral-large" GenerateResponse: type: object properties: requestId: type: string description: 요청 고유 식별자 example: "req_123456789" questions: type: array description: 생성된 면접 질문 목록 items: $ref: '#/components/schemas/InterviewQuestion' learningPlan: $ref: '#/components/schemas/LearningPlan' metadata: $ref: '#/components/schemas/GenerationMetadata' InterviewQuestion: type: object properties: id: type: integer description: 질문 번호 example: 1 question: type: string description: 면접 질문 example: "Spring Boot에서 @Transactional 어노테이션의 동작 원리와 주의사항에 대해 설명해주세요." category: type: string description: 질문 카테고리 enum: ["기술", "경험", "문제해결", "소프트스킬", "상황대응"] example: "기술" difficulty: type: string description: 난이도 enum: ["초급", "중급", "고급"] example: "중급" intent: type: string description: 질문 의도/평가 포인트 example: "Spring의 AOP와 트랜잭션 관리에 대한 이해도 평가" LearningPlan: type: object properties: sections: type: array description: 학습 경로 섹션들 items: $ref: '#/components/schemas/LearningSection' LearningSection: type: object properties: title: type: string description: 섹션 제목 example: "기술 심화 학습" description: type: string description: 섹션 설명 example: "부족한 기술 스킬을 보완하고 심화 지식을 습득합니다." estimatedWeeks: type: integer description: 예상 소요 주수 example: 4 items: type: array description: 학습 항목들 items: $ref: '#/components/schemas/LearningItem' LearningItem: type: object properties: title: type: string description: 학습 항목 제목 example: "Spring Security 마스터하기" description: type: string description: 상세 설명 example: "인증/인가 구조를 이해하고 JWT 기반 보안 시스템을 구현합니다." type: type: string description: 학습 유형 enum: ["이론학습", "실습프로젝트", "코드리뷰", "문서작성", "커뮤니케이션"] example: "실습프로젝트" resources: type: array description: 추천 리소스 items: type: string example: ["Spring Security 공식 문서", "인프런 Spring Security 강의"] deliverables: type: array description: 예상 산출물 items: type: string example: ["JWT 기반 인증 시스템 구현", "보안 설정 문서 작성"] GenerationMetadata: type: object properties: modelId: type: string description: 사용된 OpenRouter 모델 ID example: "anthropic/claude-3.5-sonnet" modelName: type: string description: 모델 이름 example: "Claude 3.5 Sonnet" openrouterRequestId: type: string description: OpenRouter 요청 ID (추적용) example: "req_openrouter_123abc" openrouterResponseId: type: string description: OpenRouter 응답 ID (추적용) example: "resp_openrouter_456def" responseTime: type: number description: 응답 시간 (초) example: 3.2 tokensUsed: type: integer description: 사용된 토큰 수 example: 1250 generatedAt: type: string format: date-time description: 생성 시각 example: "2024-03-20T10:30:00Z" ModelsResponse: type: object properties: models: type: array description: 사용 가능한 모델 목록 items: $ref: '#/components/schemas/ModelInfo' ModelInfo: type: object properties: id: type: string description: 내부 모델 ID example: "anthropic/claude-3.5-sonnet" name: type: string description: 모델 표시명 example: "Claude 3.5 Sonnet" provider: type: string description: 모델 제공업체 example: "Anthropic" openrouterModelId: type: string description: OpenRouter에서의 실제 모델 ID example: "anthropic/claude-3.5-sonnet" description: type: string description: 모델 설명 example: "Most intelligent model with balanced performance" characteristics: $ref: '#/components/schemas/ModelCharacteristics' pricing: $ref: '#/components/schemas/ModelPricing' ModelCharacteristics: type: object properties: speed: type: string description: 응답 속도 enum: ["빠름", "보통", "느림"] example: "보통" creativity: type: string description: 창의성 수준 enum: ["높음", "보통", "낮음"] example: "높음" accuracy: type: string description: 정확도 enum: ["높음", "보통", "낮음"] example: "높음" contextLength: type: integer description: 최대 컨텍스트 길이 (토큰 수) example: 200000 maxRequestsPerMinute: type: integer description: 분당 최대 요청 수 example: 60 supportsStreaming: type: boolean description: 스트리밍 지원 여부 example: true ModelPricing: type: object properties: inputTokenPrice: type: number description: 입력 토큰당 가격 (USD per 1K tokens) example: 0.003 outputTokenPrice: type: number description: 출력 토큰당 가격 (USD per 1K tokens) example: 0.015 FeedbackRequest: type: object required: - requestId - rating properties: requestId: type: string description: 피드백 대상 요청 ID example: "req_123456789" rating: type: integer description: 만족도 평점 (1-5) minimum: 1 maximum: 5 example: 4 comment: type: string description: 자유 의견 (선택) maxLength: 1000 example: "면접 질문이 실제 면접과 매우 유사해서 도움이 되었습니다." categories: type: array description: 도움이 된 카테고리들 (선택) items: type: string enum: ["질문품질", "학습경로", "실용성", "개인화", "속도"] example: ["질문품질", "실용성"] FeedbackResponse: type: object properties: message: type: string description: 응답 메시지 example: "피드백이 성공적으로 제출되었습니다." feedbackId: type: string description: 피드백 고유 식별자 example: "feedback_987654321" ErrorResponse: type: object properties: error: type: object properties: code: type: string description: 에러 코드 example: "INVALID_INPUT" message: type: string description: 에러 메시지 example: "입력 정보가 올바르지 않습니다." details: type: string description: 상세 에러 정보 example: "careerSummary는 50자 이상이어야 합니다." timestamp: type: string format: date-time description: 에러 발생 시각 example: "2024-03-20T10:30:00Z" securitySchemes: ApiKeyAuth: type: apiKey in: header name: X-API-Key description: API 키 인증 (현재는 사용하지 않음) security: [] # 현재는 인증 없이 사용 가능 externalDocs: description: AI Interview Coach 프로젝트 문서 url: https://github.com/your-org/ai-interview-coach/wiki