Communication: hbf-media-manager
1-hop view of how this service communicates with its siblings. For the full system view, see service-communication.md.
Calls Out To
| Service | Protocol | Purpose | Key calls / queues |
|---|---|---|---|
| hbf-core | HTTP (hbf-core-api) | Organization lookup, audit log creation | Bearer token (CORE_TOKEN) |
| AWS S3 | SDK | File storage: multipart upload, delete | CreateMultipartUploadCommand, UploadPartCommand, CompleteMultipartUploadCommand, DeleteObjectCommand. Path: {orgId}/{filename} |
Called By
| Service | Protocol | How |
|---|---|---|
| hbf-console | REST API | File management (GET/POST/DELETE) |
Contracts
Inbound
| Method | Path | Purpose |
|---|---|---|
| GET | /organization/{orgId}/media | List media (pagination, search, filters) |
| POST | /organization/{orgId}/media | Upload (multipart form-data, file size validation) |
| DELETE | /organization/{orgId}/media/{id} | Delete single file |
| DELETE | /organization/{orgId}/media/batch | Batch delete |
Outbound
| Target | Auth | Env Vars |
|---|---|---|
| hbf-core | Bearer token (CORE_TOKEN) | CORE_URL, CORE_TOKEN |
| AWS S3 | AWS credentials | AWS_S3_* |
Flows Involving This Service
Supporting service. No primary flow.