WP-00 Flutter spec
Live pieces stay. New paths copy EndpointUri into ApiConfig. Wire: exchange/common.md.
Usage
The home health check calls HealthRemoteDataSource through AfiaApiClient.get(ApiConfig.health). Force-update will call ApiConfig.appVersion the same way. Feature packages do not construct URLs by hand.
Domain
HealthStatusatlib/domain/entities/health_status.dart(live).
No new domain type for version until a feature asks for a force-update banner.
Models
HealthStatusModelatlib/data/models/health_status_model.dart.fromJsonkeysstatus,service. Match the live health JSON.
Data sources
HealthRemoteDataSourceatlib/data/datasources/health_remote_data_source.dart. UsesAfiaApiClient.AfiaApiClientatlib/core/network/afia_api_client.dart. Single HTTP client.
ApiConfig at lib/core/const/api_config.dart copies every reserved path WP-00 adds to EndpointUri.
Repositories
Presentation today talks to the health data source. Keep that until a feature asks for a health repository. Do not add a second client.
Does not do
Java types. Invented screens. A second HTTP client. Feature folders under presentation/.