eu-digital-green-certificates / dgca-businessrule-service

Apache License 2.0
7 stars 24 forks source link

Setup a spring boot Service #1

Closed SchulzeStTSI closed 3 years ago

SchulzeStTSI commented 3 years ago

Setup a spring boot service and integrate the modified dcc-lib.

Provide the routes for:

GET /rules/{country}

GET /rules which should return an signed list like:

Header X-SIGNATURE .....(ECDSA)

[ { "co":"DE", "hash":"h33hdh2323..." (SHA256) }, ... ]

GET /rules/{hash} --> JSON

GET /valuesets

Header X-SIGNATURE .....(ECDSA)

[ { "id":"disease-agent-targeted", "hash":"h33hdh2323..." (SHA256) }, ... ]

GET /valuesets/{hash} (not signed)

The service needs an small service which is able to sign the bundled lists before return it by the get methods.

To provide a full list of onboarded countries, add a /countrylist route.