-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenapi.json
More file actions
4456 lines (4456 loc) · 124 KB
/
Copy pathopenapi.json
File metadata and controls
4456 lines (4456 loc) · 124 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi" : "3.1.0",
"info" : {
"title" : "OpenAPI definition",
"version" : "v0"
},
"servers" : [ {
"url" : "http://localhost",
"description" : "Generated server url"
} ],
"tags" : [ {
"name" : "Internal: Analysis Triggers",
"description" : "X-Internal-API-Key 필요. e2e 검증/디버그용 강제 트리거. 실제 사용자 흐름은 POST /api/resumes, POST /api/repositories 가 자동 트리거."
}, {
"name" : "Internal: GitHub Token Delegation",
"description" : "X-Internal-API-Key 필요. AI 서버가 레포 분석 시점에 사용자 GitHub 토큰을 짧게 위임받기 위해 호출."
}, {
"name" : "Users",
"description" : "Authenticated user APIs"
}, {
"name" : "Internal: AI Request Logs",
"description" : "X-Internal-API-Key 필요. AI 가 LLM 호출별 토큰/지연시간을 기록."
}, {
"name" : "Voice Answer",
"description" : "음성 답변 업로드 (Phase 2 - 음성 면접)"
}, {
"name" : "Documents",
"description" : "분석 문서(이력서/레포 공통) 조회. 상세 조회 시 분석 마크다운의 presigned S3 URL 포함."
}, {
"name" : "Users (Bookmarks)",
"description" : "오답노트 — 다시 볼 질문 모아보기."
}, {
"name" : "Users (Stats)",
"description" : "사용자 면접 통계 — 총/완료 세션 수, 평균 점수, 최근 점수 추이."
}, {
"name" : "Internal: Session Messages",
"description" : "X-Internal-API-Key 필요. RealTime WS 답변 위임."
}, {
"name" : "Auth",
"description" : "OAuth login (GitHub, Google) and authentication token APIs"
}, {
"name" : "Sessions",
"description" : "면접 세션 생성·조회·상태 전환. 컨텍스트(이력서/레포 분석 문서) 연결 포함."
}, {
"name" : "Session Feedback",
"description" : "세션 종합 피드백 (US-24)"
}, {
"name" : "Internal: Document Embeddings",
"description" : "X-Internal-API-Key 필요. AI 서버가 분석 결과 청크/임베딩을 pgvector 에 idempotent upsert 할 때 호출."
}, {
"name" : "CoverLetters",
"description" : "자소서(공채용 문항별 텍스트) 입력/관리. 생성 시 분석 파이프라인이 자동 트리거되며 결과는 /realtime/stream/me (DOC_STATE) 로 통지됨."
}, {
"name" : "User Consents",
"description" : "개인정보처리/이용약관/마케팅 동의 제출·이력·철회 (append-only audit)."
}, {
"name" : "Public: Shared Feedback",
"description" : "공유 링크로 피드백 조회(비인증)"
}, {
"name" : "Resumes",
"description" : "이력서 업로드/관리. 업로드 시 분석 파이프라인이 자동 트리거되며 결과는 /realtime/stream/me (DOC_STATE) 로 통지됨."
}, {
"name" : "Repositories",
"description" : "GitHub 레포 등록/관리. 등록 시 분석 파이프라인이 자동 트리거되며 결과는 /realtime/stream/me (REPO_STATE) 로 통지됨."
}, {
"name" : "Session Messages",
"description" : "면접 메시지 시퀀스 — 질문/답변 트리."
}, {
"name" : "Internal: Embedding Search",
"description" : "X-Internal-API-Key 필요. AI 서버가 질문/피드백 생성 시 컨텍스트 청크 검색 (pgvector cosine)."
} ],
"paths" : {
"/api/sessions/{sessionId}/messages/{messageId}/bookmark" : {
"put" : {
"tags" : [ "Session Messages" ],
"summary" : "질문 오답노트 표시/해제",
"description" : "다시 볼 질문을 표시한다. 질문(INTERVIEWER) 메시지에만 걸 수 있다. 모아보기는 GET /api/users/me/bookmarks.",
"operationId" : "setQuestionBookmark",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
}, {
"name" : "messageId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/QuestionBookmarkRequest"
}
}
},
"required" : true
},
"responses" : {
"200" : {
"description" : "표시 상태",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/QuestionBookmarkResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/QuestionBookmarkResponse"
}
}
}
},
"404" : {
"description" : "세션 또는 메시지 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/QuestionBookmarkResponse"
}
}
}
},
"422" : {
"description" : "질문이 아닌 메시지",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/QuestionBookmarkResponse"
}
}
}
}
}
}
},
"/api/internal/documents/{documentId}/embeddings" : {
"put" : {
"tags" : [ "Internal: Document Embeddings" ],
"summary" : "분석 문서 청크 + 임베딩 upsert",
"description" : "(document_id, chunk_index) 기준 idempotent. 벡터 차원이 dim 과 다르면 400.",
"operationId" : "internalUpsertDocumentEmbeddings",
"parameters" : [ {
"name" : "documentId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/UpsertRequest"
}
}
},
"required" : true
},
"responses" : {
"200" : {
"description" : "upsert 성공 (응답에 upsert 된 개수 포함)",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/UpsertResponse"
}
}
}
},
"400" : {
"description" : "임베딩 페이로드 검증 실패 (dim 불일치 등)",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/UpsertResponse"
}
}
}
},
"401" : {
"description" : "X-Internal-API-Key 인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/UpsertResponse"
}
}
}
},
"404" : {
"description" : "documentId 에 해당하는 analyzed_documents 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/UpsertResponse"
}
}
}
}
}
}
},
"/api/users/me/consents" : {
"get" : {
"tags" : [ "User Consents" ],
"summary" : "내 동의 이력 (최신순)",
"operationId" : "listConsents",
"responses" : {
"200" : {
"description" : "이력 목록",
"content" : {
"*/*" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/ConsentResponse"
}
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/ConsentResponse"
}
}
}
}
}
}
},
"post" : {
"tags" : [ "User Consents" ],
"summary" : "동의 제출 (새 row 생성)",
"operationId" : "submitConsent",
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ConsentSubmitRequest"
}
}
},
"required" : true
},
"responses" : {
"201" : {
"description" : "동의 row 생성",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ConsentResponse"
}
}
}
},
"400" : {
"description" : "요청 검증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ConsentResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ConsentResponse"
}
}
}
}
}
}
},
"/api/sessions" : {
"get" : {
"tags" : [ "Sessions" ],
"summary" : "내 세션 히스토리 (US-15)",
"operationId" : "listSessions",
"parameters" : [ {
"name" : "pageable",
"in" : "query",
"required" : true,
"schema" : {
"$ref" : "#/components/schemas/Pageable"
}
} ],
"responses" : {
"200" : {
"description" : "세션 목록",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/PageResponseSessionResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/PageResponseSessionResponse"
}
}
}
}
}
},
"post" : {
"tags" : [ "Sessions" ],
"summary" : "세션 생성 (US-13/14)",
"description" : "mode/jobCategory 필수. contextDocumentIds 로 분석 문서 N개 연결 (US-14). 분석 미완료 문서는 422.",
"operationId" : "createSession",
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/SessionCreateRequest"
}
}
},
"required" : true
},
"responses" : {
"201" : {
"description" : "세션 생성 완료",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
},
"400" : {
"description" : "요청 검증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
},
"404" : {
"description" : "지정된 문서 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
},
"422" : {
"description" : "분석 미완료 문서를 컨텍스트로 지정",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
}
}
}
},
"/api/sessions/{sessionId}/stream-token" : {
"post" : {
"tags" : [ "Sessions" ],
"summary" : "세션 채널 SSE/WS 용 리소스 스코프 stream token",
"operationId" : "createSessionStreamToken",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"200" : {
"description" : "토큰 발급",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/StreamTokenResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/StreamTokenResponse"
}
}
}
},
"404" : {
"description" : "세션 없음 / 소유자 아님",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/StreamTokenResponse"
}
}
}
}
}
}
},
"/api/sessions/{sessionId}/retry" : {
"post" : {
"tags" : [ "Sessions" ],
"summary" : "같은 설정으로 다시 면접 (US-13 재도전)",
"description" : "기존 세션의 설정(모드·직군·질문 수·JD 등)을 그대로 복사해 새 세션을 만든다. focusOnWeakness=true 면 원본 피드백에서 낮았던 평가 축을 집중 영역으로 새겨, 질문 생성이 그 영역을 검증하는 질문을 우선 배치한다. 연결 자료는 지금도 살아있고 분석이 끝난 것만 다시 잇는다 — 그 사이 삭제된 자료 때문에 재도전 전체가 404 로 막히지 않게 하기 위함. 응답의 contextDocumentIds 를 원본과 비교하면 무엇이 빠졌는지 알 수 있다.",
"operationId" : "retrySession",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/SessionRetryRequest"
}
}
}
},
"responses" : {
"201" : {
"description" : "새 세션 생성 완료",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
},
"404" : {
"description" : "원본 세션 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/SessionResponse"
}
}
}
}
}
}
},
"/api/sessions/{sessionId}/messages" : {
"get" : {
"tags" : [ "Session Messages" ],
"summary" : "세션 메시지 시퀀스 (US-20)",
"operationId" : "listSessionMessages",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"200" : {
"description" : "메시지 목록",
"content" : {
"*/*" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
}
},
"404" : {
"description" : "세션 없음",
"content" : {
"*/*" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
}
}
}
},
"post" : {
"tags" : [ "Session Messages" ],
"summary" : "답변 제출 (US-19) + 꼬리질문 자동 트리거",
"description" : "직전 INTERVIEWER 메시지에 대한 답변을 INTERVIEWEE 로 INSERT. commit 후 generate.followup 발행.",
"operationId" : "submitAnswer",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
}, {
"name" : "Idempotency-Key",
"in" : "header",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/MessageSubmitRequest"
}
}
},
"required" : true
},
"responses" : {
"201" : {
"description" : "답변 저장 + 꼬리질문 발행",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"400" : {
"description" : "검증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"404" : {
"description" : "세션 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"422" : {
"description" : "세션이 IN_PROGRESS 아니거나 직전 메시지가 질문 아님",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
}
}
}
},
"/api/sessions/{sessionId}/messages/voice" : {
"post" : {
"tags" : [ "Voice Answer" ],
"summary" : "음성 답변 업로드 + STT/분석 트리거",
"description" : "multipart/form-data 로 audio 파일 업로드. 응답은 transcribing 상태 메시지. STT 완료 후 SESSION_MESSAGE SSE 로 transcript 가 도착합니다.",
"operationId" : "submitVoiceAnswer",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
}, {
"name" : "Idempotency-Key",
"in" : "header",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"requestBody" : {
"content" : {
"multipart/form-data" : {
"schema" : {
"type" : "object",
"properties" : {
"audio" : {
"type" : "string",
"format" : "binary"
}
},
"required" : [ "audio" ]
}
}
}
},
"responses" : {
"201" : {
"description" : "메시지 INSERT + analyze.voice 발행",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"400" : {
"description" : "파일 형식/크기 오류",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"404" : {
"description" : "세션 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
},
"422" : {
"description" : "세션이 IN_PROGRESS 아니거나 직전 메시지가 질문 아님",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/MessageResponse"
}
}
}
}
}
}
},
"/api/sessions/{sessionId}/messages/voice/stream-begin" : {
"post" : {
"tags" : [ "Voice Answer" ],
"summary" : "실시간 음성 답변 시작 (placeholder 생성)",
"description" : "WS 오디오 스트림 전에 호출. placeholder 메시지를 만들고 messageId 를 반환. 이 messageId 를 WS 쿼리로 넘긴다.",
"operationId" : "beginVoiceStream",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
}, {
"name" : "Idempotency-Key",
"in" : "header",
"required" : false,
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"201" : {
"description" : "placeholder 생성",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/VoiceStreamBeginResponse"
}
}
}
},
"404" : {
"description" : "세션 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/VoiceStreamBeginResponse"
}
}
}
},
"422" : {
"description" : "세션 상태/직전 메시지 조건 불만족",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/VoiceStreamBeginResponse"
}
}
}
}
}
}
},
"/api/sessions/{sessionId}/feedback/share" : {
"post" : {
"tags" : [ "Session Feedback" ],
"summary" : "피드백 공유 토큰 발급(멱등)",
"operationId" : "shareSessionFeedback",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"200" : {
"description" : "공유 토큰",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ShareResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ShareResponse"
}
}
}
},
"404" : {
"description" : "세션 또는 피드백 없음",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ShareResponse"
}
}
}
}
}
},
"delete" : {
"tags" : [ "Session Feedback" ],
"summary" : "피드백 공유 해제(기존 링크 즉시 무효화, 멱등)",
"operationId" : "unshareSessionFeedback",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"204" : {
"description" : "공유 해제됨"
},
"401" : {
"description" : "인증 실패"
},
"404" : {
"description" : "세션 또는 피드백 없음"
}
}
}
},
"/api/sessions/{sessionId}/feedback/regenerate" : {
"post" : {
"tags" : [ "Session Feedback" ],
"summary" : "피드백 재생성 요청 — 발행 유실·AI 실패로 피드백이 오지 않을 때의 복구 경로",
"operationId" : "regenerateSessionFeedback",
"parameters" : [ {
"name" : "sessionId",
"in" : "path",
"required" : true,
"schema" : {
"type" : "integer",
"format" : "int64"
}
} ],
"responses" : {
"202" : {
"description" : "재생성 요청 접수"
},
"401" : {
"description" : "인증 실패"
},
"404" : {
"description" : "세션 없음"
},
"409" : {
"description" : "피드백이 이미 존재"
},
"422" : {
"description" : "COMPLETED 세션이 아님"
}
}
}
},
"/api/resumes" : {
"get" : {
"tags" : [ "Resumes" ],
"summary" : "내 이력서 목록",
"operationId" : "listResumes",
"responses" : {
"200" : {
"description" : "사용자 소유 이력서 목록",
"content" : {
"*/*" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/ResumeResponse"
}
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/ResumeResponse"
}
}
}
}
}
}
},
"post" : {
"tags" : [ "Resumes" ],
"summary" : "이력서 PDF 업로드 + 분석 트리거",
"description" : "multipart/form-data 로 PDF 파일을 받아 S3 저장 → DB row 생성(status=PENDING) → AI 분석 자동 발행. 최대 20MB, application/pdf 만 허용.",
"operationId" : "uploadResume",
"requestBody" : {
"content" : {
"multipart/form-data" : {
"schema" : {
"type" : "object",
"properties" : {
"file" : {
"type" : "string",
"format" : "binary"
}
},
"required" : [ "file" ]
}
}
}
},
"responses" : {
"201" : {
"description" : "업로드 + 분석 트리거 성공",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ResumeResponse"
}
}
}
},
"400" : {
"description" : "빈 파일 / 사이즈 초과 / 비-PDF",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ResumeResponse"
}
}
}
},
"401" : {
"description" : "인증 실패",
"content" : {
"*/*" : {
"schema" : {
"$ref" : "#/components/schemas/ResumeResponse"
}
}
}
}
}
}
},
"/api/resumes/web" : {
"post" : {
"tags" : [ "Resumes" ],
"summary" : "웹 이력서(URL) 등록 + 분석 트리거 (US-09)",
"description" : "포트폴리오·블로그·노션 등 공개 URL 을 이력서 자료로 등록한다. 파일 업로드 없이 URL 만 저장하고, 본문 추출·요약·임베딩은 AI 서버가 수행(analyze.web). 결과는 /realtime/stream/me (DOC_STATE) 로 통지된다. http·https 공개 주소만 허용(내부망 차단).",