Skip to content

API 문서

jeong-gu edited this page Jul 9, 2026 · 2 revisions

API 문서

기본 API 주소:

http://localhost:3000/api

상세 명세는 repo의 docs/backend-api-spec.md를 참고합니다.

Health

GET /api/health

백엔드와 DB 연결 상태를 확인합니다.

사육박스

GET    /api/culture-boxes
POST   /api/culture-boxes
PATCH  /api/culture-boxes/:id
DELETE /api/culture-boxes/:id

삭제는 soft delete로 처리됩니다.

휴지통

GET  /api/trash/culture-boxes
POST /api/trash/culture-boxes/:id/restore

측정

POST /api/measurements
GET  /api/culture-boxes/:boxId/measurements

분석

POST /api/analysis/detection
POST /api/analysis/density
POST /api/analysis/vitality
GET  /api/analysis/jobs/:jobId

density endpoint는 현재 통합 density/vitality 분석 workflow와 연결됩니다.

증식률

GET /api/culture-boxes/:boxId/growth

선택한 사육박스의 측정 이력과 변화율을 반환합니다.

Model API

모델 API 기본 주소:

http://localhost:8000

주요 endpoint:

GET  /health
GET  /model/info
POST /predict/image
POST /infer/detection
POST /infer/density
POST /infer/vitality

Clone this wiki locally