Read-only mirror of https://github.com/SwissCovid/swisscovid-config-backend — SwissCovid. Issues & pull requests at the source.
  • Java 97.8%
  • Python 1.3%
  • Makefile 0.7%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simon Rösch 728953d7a0
Merge pull request #133 from SwissCovid/feature/deactivation
implement app deactivation flag and texts
2022-03-30 15:57:48 +02:00
.github/workflows add java distribution to workflows 2022-03-04 16:59:41 +01:00
documentation/yaml update swagger 2021-09-28 12:58:31 +02:00
dpppt-config-backend update translations & add correct termination url 2022-03-30 15:05:36 +02:00
.gitignore Update Spring. Add Logrelay logger. Cleanup logbacks. 2021-09-02 10:36:56 +02:00
LICENSE Initial commit 2020-04-20 16:21:25 +02:00
Makefile Adding documentation to DPPTConfigController 2020-10-27 14:38:22 +01:00
README.md Update README.md 2021-06-09 13:35:04 +02:00
renovate.json renovate: configure monthly batches 2022-03-04 16:46:26 +01:00

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.