Accept icu_cameratrap_rep as camera trap image event type

ICU sends "icu_cameratrap_rep" instead of the documented Gundi/EarthRanger
type "cameratrap_rep". Events of the unknown type were stored as IGNORED, so
the following attachment upload got 404 and no image was ingested. Treat both
names as image events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dom
2026-10-05 15:55:37 +02:00
co-authored by Claude Opus 5.5
parent 0f574cccde
commit cb2566a537
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ ICU pusht Events ueber eine Gundi-v2-kompatible API. Der Service `gundi-receiver
| Route | Zweck |
|-------|-------|
| `POST /v2/events/` | `camera_status_report` oder `cameratrap_rep` (JSON, Objekt oder Liste) |
| `POST /v2/events/` | `camera_status_report` oder `cameratrap_rep` / `icu_cameratrap_rep` (JSON, Objekt oder Liste) |
| `POST /v2/events/<object_id>/attachments/` | JPEG zum `cameratrap_rep` (multipart/form-data) |
| `GET /healthz` | Healthcheck |