Service Layer low complexity mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Riverpod provider that fetches the resource link list from /api/v1/resources with the authenticated user's JWT, caches the response with a 15-minute TTL, and exposes the list to the UI layer. Handles cache invalidation and network error propagation.

Feature: External Resource Links

resource-links-service

Responsibilities

  • Fetch resource links from REST API endpoint with organization context derived from JWT
  • Cache API response in-memory with a 15-minute TTL using Riverpod
  • Invalidate and refresh cache on explicit pull-to-refresh
  • Map raw API response to typed ResourceLink model objects

Interfaces

fetchResourceLinks() → Future<List<ResourceLink>>
refreshLinks() → Future<void>
resourceLinksProvider → AsyncValue<List<ResourceLink>>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component