API Pattern: Distribution
- Self Isolation Configuration:
https://<FQDN>/distribution/self-isolation
- FQDN: One (CDN) hostname for all distributed APIs
- Authorization NOT required and signatures provided - see API security
- Payload content-type:
application/json
Mobile clients fetch this configuration to be able to calculate self isolation duration intervals
{
"durationDays": {
"indexCaseSinceSelfDiagnosisOnset": 11,
"indexCaseSinceSelfDiagnosisUnknownOnset": 9,
"contactCase": 11,
"maxIsolation": 21,
"pendingTasksRetentionPeriod": 14,
"indexCaseSinceTestResultEndDate": 11,
"testResultPollingTokenRetentionPeriod": 28
},
"england": {
"indexCaseSinceSelfDiagnosisOnset": 11,
"indexCaseSinceSelfDiagnosisUnknownOnset": 9,
"contactCase": 11,
"maxIsolation": 21,
"pendingTasksRetentionPeriod": 14,
"indexCaseSinceTestResultEndDate": 11,
"testResultPollingTokenRetentionPeriod": 28
},
"wales": {
"indexCaseSinceSelfDiagnosisOnset": 6,
"indexCaseSinceSelfDiagnosisUnknownOnset": 4,
"contactCase": 11,
"maxIsolation": 16,
"pendingTasksRetentionPeriod": 14,
"indexCaseSinceTestResultEndDate": 6,
"testResultPollingTokenRetentionPeriod": 28
}
}
indexCaseSinceSelfDiagnosisUnknownOnset
used when the user didn’t enter a start date of the symptomsindexCaseSinceTestResultEndDate
used when the user manually links a positive test result and wasn’t in isolation beforeengland
andwales
are used to provide country-specific configurations. The names doesn't mentiondurationDays
since there are plans to introduce new non-integer fields in the futuredurationDays
is shared configuration for England and Wales and is used by older app versions (<=4.6.1)
For the complete version check src/static/self-isolation.json