From dd93b848d11df2a8cc0697e33b0ea55746c38020 Mon Sep 17 00:00:00 2001 From: Chris Diesch Date: Thu, 10 Apr 2025 19:57:02 -0600 Subject: [PATCH] Add response code documentation --- app/MRE/api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/MRE/api.py b/app/MRE/api.py index 31345b9..9e9ea4d 100644 --- a/app/MRE/api.py +++ b/app/MRE/api.py @@ -30,7 +30,12 @@ MRE_request_parser.add_argument('down_payment', 'down_payment': 'The down_payment percentage (float) range: [0-1].' }) class ComputeMRE(Resource): - @namespace.doc(description='Computes and returns the MRE.') + @namespace.expect(MRE_request_parser) + @namespace.doc(description='Computes and returns the MRE.', + responses={ + 200: 'Good', + 400: 'Validation Error' + }) def get(self): args = MRE_request_parser.parse_args() try: