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

realtime beta api spec #341

Closed
StephenHodgson opened this issue Oct 2, 2024 · 7 comments
Closed

realtime beta api spec #341

StephenHodgson opened this issue Oct 2, 2024 · 7 comments

Comments

@StephenHodgson
Copy link

Hi I was wondering when the reatime api spec will be added?

I see there are docs but wasn't able to find them in the current spec.

@benadamdev
Copy link

I don't think that's possible. This spec is primarily designed for HTTP-based RESTful APIs. Realtime API is a WebSocket API not a RESTful one.

@StephenHodgson
Copy link
Author

@benadamdev there's no reason why it cannot be added. the only real difference is the protocol. Path and payload objects are still defined in json.

I thought OpenAPI had websocket spec proposal? ... oh it was never accepted 😕

Well in either case it'd be great to have a machine readable spec for the json objects and paths 🤷

@StephenHodgson
Copy link
Author

fwiw there are ways to use fastapi to build out ws paths...

@StephenHodgson
Copy link
Author

Found a realtime spec document, but it is unofficial

@benadamdev
Copy link

@StephenHodgson Thank you very much for this. Although this not a REST API, the schemas section is a real gem from a code generation perspective. Coming from Microsoft, this is pretty official to me. Thanks again.

@StephenHodgson
Copy link
Author

Regardless if it is not a REST API, I think it is perfectly acceptable to add the schema object definitions to the OpenAPI spec here.

@StephenHodgson
Copy link
Author

Added in #356

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

2 participants