API — Notes and Reminders
Note Endpoints
| Endpoint | Method | Purpose | Source file |
|---|---|---|---|
/iqv_notlar_listele |
GET | List notes | notesService.tsx (getNotes) — shared by the Notes, Reminder, and Mail Box pages |
/iqv_not_ekle |
POST | Add a new note | notesService.tsx (createNote) |
/iqv_not_guncelle |
PUT | Update a note | notesService.tsx (updateNote) |
/iqv_not_sil |
DELETE (body { id }) |
Delete a note | notesService.tsx (deleteNote) |
/fileAddd |
POST | Upload a note attachment | notesService.tsx (uploadNoteFiles) |
The /fileAddd request body is { bucket: 'iqv-platform-notlar', files }; this bucket is entirely separate from other modules' own buckets (e.g. Track's track-files, task assignment's iqv-task), and this page only ever uses its own.
Reminder Endpoints
| Endpoint | Method | Purpose | Source file |
|---|---|---|---|
/iqv_not_hatirlatici_listele |
GET | List note reminders | noteReminderService.tsx (getNoteReminders) |
/iqv_not_hatirlatici_olustur |
POST | Save a note's full set of reminder times (create/update/sync all use this one endpoint) | noteReminderService.tsx (saveNoteReminders, createNoteReminders, updateNoteReminder, synchronizeNoteReminders) |
/iqv_not_hatirlatici_sil |
DELETE (body) | Delete a single reminder time | noteReminderService.tsx (deleteNoteReminder, deleteAllNoteReminders — called once per item, there is no bulk-delete endpoint) |
The saveNoteReminders body includes note_id, module_id, module_name, note, status: 'active', reminder_time[], reminder_items[], created_by_id/name, updated_by_id/name, plus one fixed categorization field: source: 'termit-note-reminder'.
Backend contract — intentionally left unchanged
This literal value, along with the Node-RED-based backend template name referenced in a comment in dashboard/src/interfaces/models/noteReminder.tsx ("Termit Not Hatırlatıcı Sayfası"), reflects the backend's real, external system naming. It is not in-project branding but the external backend flow's own name, so it was deliberately left unchanged.
synchronizeNoteReminders is a client-side orchestration function (not a separate backend endpoint) that diffs the current and previous reminder sets and issues the necessary DELETE/POST calls in sequence, with a rollback attempt on failure.
A Note on Legacy File Addresses
resolveAttachmentUrl (dashboard/src/utils/index.tsx) recognizes absolute file addresses from the legacy pre-MinIO host (termit.iqvizyon.com) and converts them to the current MinIO address. This is a backward-compatibility mechanism for real historical production data, and was deliberately left unchanged as part of the rename (see the main report).