From 2f5bc2a2227500fd3819f7fd97dc25cd9d45fa5c Mon Sep 17 00:00:00 2001 From: happybell80 Date: Sat, 4 Oct 2025 23:30:59 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20FastAPI=20=EA=B5=AC=EC=A1=B0=20?= =?UTF-8?q?=EC=9B=90=EC=B9=99=20=EB=B0=98=EC=98=81=20-=20=EA=B3=84?= =?UTF-8?q?=EC=B8=B5=20=EB=B6=84=EB=A6=AC=20=EB=AA=85=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 250930_naverworks_slack_04: 생성 파일에 계층 표기 - services (비즈니스 계층): Slack API 호출 로직 - endpoints (요청 계층): HTTP 요청/응답, services 호출 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- ...rworks_slack_04_lists_api_skill_integration.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/troubleshooting/250930_naverworks_slack_04_lists_api_skill_integration.md b/troubleshooting/250930_naverworks_slack_04_lists_api_skill_integration.md index fe23249..26ba47c 100644 --- a/troubleshooting/250930_naverworks_slack_04_lists_api_skill_integration.md +++ b/troubleshooting/250930_naverworks_slack_04_lists_api_skill_integration.md @@ -72,14 +72,15 @@ skill-slack에 올바른 Lists 엔드포인트 추가 → rb8001은 HTTP로만 - initial_fields 구조: column_id + 타입별 필드 (103-118줄) - files_upload_v2 사용 (81줄) -### 3. 생성 파일 -- skill-slack/app/services/slack_lists_service.py (신규) - - list_all_items(), add_file_to_list() 이전 +### 3. 생성 파일 (FastAPI 구조 원칙 준수) +- **app/services/slack_lists_service.py** (신규, 비즈니스 계층) + - list_items(), create_item() - Slack API 호출 로직 + - test_slack_lists.py:137-222 헬퍼 함수 이전 - requests 라이브러리 사용 -- skill-slack/app/api/endpoints/lists.py (신규) - - GET /api/v1/lists/{list_id}/items - - POST /api/v1/lists/items - - messages.py:26-34 패턴 (요청 토큰 우선, 환경변수 대체) +- **app/api/endpoints/lists.py** (신규, 요청 계층) + - GET /api/v1/lists/{list_id}/items → services 호출 + - POST /api/v1/lists/items → services 호출 + - messages.py:26-34 패턴 (토큰, 인증, 에러 처리) ### 4. rb8001 수정 - rb8001/app/services/slack_lists_client.py 제거