Shipboard Electrical Cable Management System — Public REST API + SDK
# 1. Firebase ID Token 획득 (Google OAuth)
TOKEN="$(your_firebase_id_token)"
# 2. 프로젝트 목록 조회
curl https://secms.tech/api/projects \
-H "Authorization: Bearer $TOKEN"
# 3. 신규 호선 등록 (atomic)
curl -X POST https://secms.tech/api/projects \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"V0001","vesselNo":"V0001","cables":[],"nodes":[]}'
Firebase ID Token (Bearer) + X-CSRF-Token (Double Submit Cookie). JWT 검증: RS256 (JWKS rotation 자동).
표준 헤더 — X-RateLimit-Limit / -Remaining / -Reset