-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-api.http
More file actions
41 lines (31 loc) · 1.16 KB
/
test-api.http
File metadata and controls
41 lines (31 loc) · 1.16 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
### BeMore 백엔드 API 테스트
### 1. 헬스 체크
GET http://localhost:3000/api/health
### 2. AI 채팅 API 테스트
POST http://localhost:3000/api/chat/gemini
Content-Type: application/json
{
"message": "안녕하세요, 오늘 기분이 좋지 않아요.",
"sessionId": "test-session-123",
"emotionContext": {
"currentEmotion": "sad",
"emotionHistory": ["happy", "sad"]
}
}
### 3. 텍스트 감정 분석 API 테스트
POST http://localhost:3000/api/emotion/analyze
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="mediaType"
text
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="text"
오늘 정말 힘들었어요. 아무것도 하고 싶지 않아요.
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="sessionId"
test-session-123
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### 4. 세션 히스토리 조회 API 테스트
GET http://localhost:3000/api/history/test-user-123
### 5. PDF 리포트 생성 API 테스트
POST http://localhost:3000/api/history/session/test-session-123/pdf