docs: Update CompanyX news API design - use status field and RESTful endpoints
This commit is contained in:
parent
18cb4e733c
commit
8ec4fd1456
@ -85,9 +85,9 @@ found_at: Optional[datetime] = Field(None, description="실제 수집 시각")
|
|||||||
|
|
||||||
## 최종 결과
|
## 최종 결과
|
||||||
- 하나의 `companyx_news_posting.json` 파일에 모든 데이터 통합
|
- 하나의 `companyx_news_posting.json` 파일에 모든 데이터 통합
|
||||||
- 수집 → 스크래핑 → 요약 단계별 업데이트
|
- 수집 → 스크래핑 → 요약 → published/skipped 상태 관리
|
||||||
- 캐시 효과로 재처리 방지
|
- GET /api/news/google/companyx/{article_id} - rb8001이 필요시 조회
|
||||||
- skill-publish가 필요한 모든 필드 제공
|
- PATCH /api/news/google/companyx/{article_id} - status 업데이트
|
||||||
|
|
||||||
## 교훈
|
## 교훈
|
||||||
1. **데이터 손실 방지**: 비싼 연산(스크래핑/AI 요약) 결과는 반드시 저장
|
1. **데이터 손실 방지**: 비싼 연산(스크래핑/AI 요약) 결과는 반드시 저장
|
||||||
|
|||||||
@ -32,8 +32,8 @@
|
|||||||
## 예상 동작
|
## 예상 동작
|
||||||
1. 버튼 클릭 → Slack → Gateway `/slack/interactive`
|
1. 버튼 클릭 → Slack → Gateway `/slack/interactive`
|
||||||
2. Gateway가 team_id로 DB 토큰 조회
|
2. Gateway가 team_id로 DB 토큰 조회
|
||||||
3. rb8001 `/api/slack/interactive`로 전달
|
3. rb8001이 skill-news에서 GET /api/news/google/companyx/{article_id} 조회
|
||||||
4. rb8001이 skill-publish 호출해서 홈페이지 게시
|
4. 전체 데이터로 skill-publish 호출, 성공 시 PATCH로 status 업데이트
|
||||||
|
|
||||||
## 관련 파일
|
## 관련 파일
|
||||||
- robeing-gateway/app/main.py:508 (slack_proxy 참고)
|
- robeing-gateway/app/main.py:508 (slack_proxy 참고)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user