Add response code documentation
This commit is contained in:
parent
b3382bc539
commit
dd93b848d1
@ -30,7 +30,12 @@ MRE_request_parser.add_argument('down_payment',
|
|||||||
'down_payment': 'The down_payment percentage (float) range: [0-1].'
|
'down_payment': 'The down_payment percentage (float) range: [0-1].'
|
||||||
})
|
})
|
||||||
class ComputeMRE(Resource):
|
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):
|
def get(self):
|
||||||
args = MRE_request_parser.parse_args()
|
args = MRE_request_parser.parse_args()
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user