flask-restful-swagger
flask-restful-swagger copied to clipboard
Error Status Codes in UI
Hello, guys. Why do I always see "Error Status Codes" in my UI? Even if success response code specified? Thanks.
If this is still an ongoing concern do you mind including a image capture?
This is still an issue for me. I've provided an example below.
Operation definition:
@swagger.operation(
notes='Tests whether the API is online.',
nickname='test_api_up',
parameters=[],
responseMessages=[
{
'code': 200,
'message': 'API started successfully'
}
]
)
Result in swagger UI:
I think this is semantics? Perhaps this should just say "Responses" instead of "Error Status Codes".
https://editor.swagger.io/
This project seems to be using an older version of the swagger UI... you can see they have since upgraded it...