-
Notifications
You must be signed in to change notification settings - Fork 192
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
integration with OpenAPI #662
Comments
That's a great idea, thanks! Are you familiar with the OpenAPI.jl package (as I'm not). Could you help with this? |
Thank you for the details @rssdev10 - very helpful! |
Actually I see two scenarios here:
|
Thanks for initiating this. It will be great to have OpenAPI and Genie work together. I am yet to go through the details, but am happy to pitch in wherever needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OpenAPI is a common way to describe API specification both for server and clients. The package https://github.com/JuliaComputing/OpenAPI.jl as well as https://openapi-generator.tech/docs/generators/julia-server/ provides a server code generation with data structures both for requests and responses. And, the code provides data parsing, validation and serializing of the results.
But OpenAPI.jl doesn't provide any functionality for authentication, CORS, routing and logging. These parts of the code should be implemented manually. See the example - https://github.com/OpenSesame/GptSearchPlugin/blob/main/src/server.jl or https://github.com/JuliaComputing/OpenAPI.jl/blob/main/test/server/petstore_v3/petstore_server.jl
It would be good to have a way to reuse components of Genie to have an easy way to write web services based on external OpenAPI specification.
The text was updated successfully, but these errors were encountered: