Notes Repository
Component Detail
Data Layer
low complexity
mobile
1
Dependencies
3
Dependents
1
Entities
0
Integrations
Description
Data access layer for notes, issuing REST API requests to the backend notes endpoint with pagination, search, and sort parameters. Caches results for offline access and maps API response DTOs to domain Note models.
notes-repository
Responsibilities
- Fetch paginated notes from REST API with filter, sort, and page parameters
- Cache note list responses locally for offline browsing
- Map NoteDto API responses to domain Note models
- Include organisation context and auth headers on all requests
Interfaces
fetchNotes(NotesQueryParams params) → Future<PaginatedResult<NoteDto>>
fetchNoteById(String id) → Future<NoteDto>
invalidateCache() → void
Relationships
Dependents (3)
Components that depend on this component