Describe websocket api via Swagger

Somebody picture Somebody · Jul 4, 2016 · Viewed 16.2k times · Source

Is it possible to describe Websocket server api via Swagger?

We have events broadcasting via websocket server and i want to describe them via one swagger specification file.

Is there any documentation generators for websockets?

Answer

Benjamin Soulier picture Benjamin Soulier · Sep 5, 2016

It seems to be possible using swagger-socket.

Still, it seems that only a Java/Scala server implementation exists for now, which means they are not as much codegens for this that there is for "standard" Swagger REST services.