flask-restful-swagger icon indicating copy to clipboard operation
flask-restful-swagger copied to clipboard

Error Status Codes in UI

Open AndriiMykytiuk opened this issue 7 years ago • 3 comments

Hello, guys. Why do I always see "Error Status Codes" in my UI? Even if success response code specified? Thanks.

AndriiMykytiuk avatar Jan 13 '18 11:01 AndriiMykytiuk

If this is still an ongoing concern do you mind including a image capture?

niall-byrne avatar Nov 14 '18 03:11 niall-byrne

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: image

callynch avatar Jun 06 '21 22:06 callynch

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...

niall-byrne avatar Sep 17 '21 14:09 niall-byrne