Integrate static_data endpoint to replace 6 separate lookup API calls
- Added StaticDataResponse model to combine all lookup data - Added getStaticData() method to LookupsApi - Updated LookupsRepository to fetch all lookups in single API call - Added updateAllLookups() method to DataCache for batch updates - Reduces network requests from 6 to 1 for initial data load - Improves app startup performance with Redis-cached response 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -84,3 +84,13 @@ data class ContractorSpecialty(
|
||||
val id: Int,
|
||||
val name: String
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class StaticDataResponse(
|
||||
val residenceTypes: List<ResidenceType>,
|
||||
val taskFrequencies: List<TaskFrequency>,
|
||||
val taskPriorities: List<TaskPriority>,
|
||||
val taskStatuses: List<TaskStatus>,
|
||||
val taskCategories: List<TaskCategory>,
|
||||
val contractorSpecialties: List<ContractorSpecialty>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user