Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we specify websockets in Swagger? #3

Open
RocketPuppy opened this issue Aug 31, 2016 · 0 comments
Open

How do we specify websockets in Swagger? #3

RocketPuppy opened this issue Aug 31, 2016 · 0 comments

Comments

@RocketPuppy
Copy link
Collaborator

Right now I've got this setup where a websocket request to /my/websocket/endpoint will get you a websocket, but a normal HTTP request will get you the last message sent. From an API perspective it's not perfect, but I like the idea. What this does allow is a specification of the HTTP functionality in Swagger, which includes models with their relevant schemas. That's the most important bit for working with the Websockets, but it would be nice to have that more specified. On the other hand, in this manner (and with some modifications to the HTTP functionality) we could potentially treat the Websocket functionality as an optimization detail, which would also be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant