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.

Feature: Notes List

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

Dependencies (1)

Components this component depends on

Dependents (3)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component