From c7e547e3d24a500d0c786509de700a27a2ec2b72 Mon Sep 17 00:00:00 2001 From: Tim Hobbs Date: Sat, 12 Sep 2020 14:33:16 +0200 Subject: [PATCH] fix: Location Header in swagger api * Add the Location Header to POST responses that use the common response Without the header, you cannot know which object you just created. Signed-off-by: Tim Hobbs --- api/v2.0/legacy_swagger.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v2.0/legacy_swagger.yaml b/api/v2.0/legacy_swagger.yaml index 96cb6219e..1b2d3525d 100644 --- a/api/v2.0/legacy_swagger.yaml +++ b/api/v2.0/legacy_swagger.yaml @@ -3679,6 +3679,10 @@ responses: description: 'Success' Created: description: 'Created' + headers: + Location: + type: string + description: The URL of the created resource BadRequest: description: 'Bad Request' Unauthorized: