flask-restx icon indicating copy to clipboard operation
flask-restx copied to clipboard

Does flask-restx support SSE response on swagger doc?

Open WilliamChen-luckbob opened this issue 7 months ago • 0 comments

Ask a question

Guys, do you have any suggestions regarding displaying Server-Side Event (SSE) responses within the Swagger UI?

I have certain functions that are related to AI and require a streaming output using SSE. I'm currently seeking methods to automatically generate documentation on Swagger through coding, such as using @ns.doc where ns stands for the Namespace.

I've googled around and asked GPT for results, but haven't found any elegant solution that can directly integrate the SSE response into the Swagger documentation. If flask-restx doesn't support this kind of operation, please let me know.

WilliamChen-luckbob avatar May 12 '25 04:05 WilliamChen-luckbob