Skip to content

Wanna use swagger for websocket without REST #63

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

Closed
artem-korolev opened this issue Dec 7, 2015 · 3 comments
Closed

Wanna use swagger for websocket without REST #63

artem-korolev opened this issue Dec 7, 2015 · 3 comments

Comments

@artem-korolev
Copy link

Hi guys. I try to use swagger for my project. I've got the problem. The thing is that I'm do not need REST at all. All my requests do not use GET, POST or whatever request statuses. My API uses clean websocket. Totally asynchronous nature.

So my question is: how to adopt swagger for my needs. What I need to rewrite/override? or better write some plugin for it?

For example: I don't want to specify my request examples like that:

path: /api_call
get: some get request

Because I dot not use REST(no any GET, POST, ..., etc.). I want to specify it something like that:

endpoint: /api_call
request: describe what client can send
response: describe what client can receive

I noticed in specification that there are schemes available: ws, wss.. But its not documented very well..

So my question is: What are your plans to support NON-REST API, because it becomes very popular. For mobile for example.

Will be glad to speak with some swagger developer or whoever. Because I can implement some module or whatever and share it for public use. But help from swagger development team is appreciated.

Thank you in advance,
Artem

@vibjerg
Copy link

vibjerg commented Jan 21, 2016

+1. I am also interested in the use case outlined by @akoroljov. I have a meta service that communicates with the client via sockets. I would appreciate some pointers on how to accomplish this using swagger

@artem-korolev
Copy link
Author

Hi vibjerg, you probably want to read this thread too - OAI/OpenAPI-Specification#523
Several other topics about websocket also already exists here and there. But not much supported yet,

@webron
Copy link
Contributor

webron commented Jan 28, 2016

Yeah, the referenced issue is the right place. This repo is just for the swagger.io website.

@webron webron closed this as completed Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants