-
-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Description
The idea is, if an endpoint's URL rule contains a variable, then add a 404 response for it:
@app.get('/pets/<id>')
def get_pet(id):
passSo user don't need to set a 404 response manually:
@app.get('/pets/<id>')
@doc(responses=[404])
def get_pet(id):
passAlso, add a config to control this behavior:
AUTO_404_RESPONSE: bool = True
Reactions are currently unavailable