{ "openapi": "3.0.0", "info": { "version": "v1", "title": "CWA-Server Submission API", "license": { "name": "Apache 2.0" } }, "paths": { "/version/{version}/diagnosis-keys": { "post": { "summary": "Post diagnosis keys.", "tags": [ "Diagnosis keys" ], "parameters": [ { "name": "cwa-authorization", "in": "header", "description": "TAN code associated with this diagnosis key submission.", "required": true, "schema": { "type": "string" } }, { "name": "cwa-fake", "in": "header", "description": "Requests with a value of \"0\" will be fully processed. Any other value indicates that this request shall be handled as a \"fake\" request." , "required": true, "schema": { "type": "string" } }, { "name": "version", "in": "path", "description": "API version", "required": true, "schema": { "$ref": "#/components/schemas/Version" } } ], "requestBody": { "content": { "application/x-protobuf": { "schema": { "$ref": "#/components/schemas/app.coronawarn.server.common.protocols.internal.SubmissionPayload" }, "example": "" } } }, "responses": { "200": { "description": "Submission payload processed successfully." }, "400": { "description": "Invalid payload or missing CWA headers." }, "403": { "description": "Specified TAN invalid." } } } } }, "components": { "schemas": { "Version": { "type": "string", "description": "A string of form 'v[\\d+]'", "example": "v1" }, "app.coronawarn.server.common.protocols.internal.SubmissionPayload": { "type": "string", "format": "binary", "description": "A collection of temporary exposure keys." } } } }