From 7f82a402de196d6cbcba34eef1f4ba01a818eee4 Mon Sep 17 00:00:00 2001 From: dylan Date: Thu, 2 Jan 2025 17:53:30 +0100 Subject: [PATCH] Document Location header in POST /election --- cmd/web/openapi.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/web/openapi.yml b/cmd/web/openapi.yml index 9e4fd91..65bb22b 100644 --- a/cmd/web/openapi.yml +++ b/cmd/web/openapi.yml @@ -34,6 +34,11 @@ paths: responses: 200: description: Election created. Body only returned if voterAreKnown is true + headers: + Location: + schema: + type: string + description: The path to the newly created election content: application/json: schema: