From d3d33de226ddbb6a93c4e1a5425bb98d4767f0f1 Mon Sep 17 00:00:00 2001 From: Brett Randall Date: Fri, 29 Jun 2018 21:19:50 +1000 Subject: [PATCH] redirect_to: Added url and status_code as query-string parameters for SwaggerUI. Fixed #476. --- httpbin/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/httpbin/core.py b/httpbin/core.py index 0a00a828..4922a8de 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -511,9 +511,12 @@ def redirect_to(): produces: - text/html parameters: - - name: url + - in: query + name: url type: string - - name: status_code + required: true + - in: query + name: status_code type: int responses: 302: