Skip to content

SwissCovid/swisscovid-config-backend

Repository files navigation

SwissCovid Config Backend

SwissCovid is the official contact tracing app of Switzerland. The app can be installed from the App Store or the Google Play Store. The SwissCovid 2.0 app uses two types of contact tracing to prevent the spread of COVID-19.

With proximity tracing close contacts are detected using the bluetooth technology. For this the dp3t-sdk-backend, DP3T iOS SDK and DP3T Android SDK are used that build on top of the Google & Apple Exposure Notifications. This feature is called SwissCovid encounters.

With presence tracing people that are at the same venue at the same time are detected. For this the swisscovid-cn-backend, CrowdNotifier iOS SDK and CrowdNotifier Android SDK are used that provide a secure, decentralized, privacy-preserving presence tracing system. This feature is called SwissCovid Check-in.

Description

This backend is used by the apps to get their config every 6h. It is used by the Swiss Government to update the epidemiological parameters if needed.

The following endpoints are available:

  • /v1 - returns Hello from DP3T Config WS
  • /v1/config - returns a ConfigResponse with the following structure and default values:
    • InfoBoxCollection - empty by default
      • deInfoBox InfoBox
        • title String
        • msg String
        • url String
        • urlTitle String
        • isDismissible = false
      • frInfoBox InfoBox
      • itInfoBox InfoBox
      • enInfoBox InfoBox
      • ptInfoBox InfoBox
      • esInfoBox InfoBox
      • sqInfoBox InfoBox
      • bsInfoBox InfoBox
      • hrInfoBox InfoBox
      • srInfoBox InfoBox
      • rmInfoBox InfoBox
    • SDKConfig - will soon be removed (30/7/2020)
      • numberOfWindowsForExposure = 3
      • @Deprecated eventThreshold = 0.8f
      • @Deprecated badAttenuationThreshold = 73.0f
      • contactAttenuationThreshold = 73.0f
    • iOSGaenSdkConfig GAENSDKConfig
      • lowerThreshold = 53
      • higherThreshold = 60
      • factorLow = 1.0d
      • factorHigh = 0.5d
      • triggerThreshold = 15
    • androidGaenSdkConfig GAENSDKConfig
  • /v1/testinfobox/config - returns a ConfigResponse with only the SDKConfig set to a static message

/config special actions

The call to /v1/config does the following special actions:

  1. If iOS == 13.6: warn that the German 'no risk' message is misleading
  2. If App == Testflight: warn that the app should be updated to the official app-store app
  3. If App == Initial iOS test app: set factorHigh = 0 to avoid errors

Repositories

License

This project is licensed under the terms of the MPL 2 license. See the LICENSE file.