FAQ Service
Component Detail
Service Layer
low complexity
mobile
1
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Business logic layer that fetches FAQ items from the backend API, handles pagination and role-based filtering, and manages client-side search with fallback to API search for large datasets. Coordinates between the REST API and local cache for offline resilience.
faq-service
Responsibilities
- Fetch paginated FAQ items filtered by product and user role from REST API
- Implement client-side search over cached FAQ dataset
- Provide API search fallback when local dataset exceeds size threshold
- Manage FAQ data refresh and cache invalidation
Interfaces
getFaqItems(product: String, role: String?): Future<List<FaqItem>>
searchFaq(query: String): List<FaqItem>
searchFaqRemote(query: String): Future<List<FaqItem>>
getFaqCategories(): List<FaqCategory>
refreshFaqItems(): Future<void>
getFaqItemById(id: String): FaqItem?