-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Serve openapi.yaml file as documentation page #43
Comments
we are using OpenAPI @magicmatatjahu and @smoya what do you think is the best choice here? |
@BOLT04 I also more familiar with I found also that nice middleware that we can reuse :) https://github.com/AungMyoKyaw/redoc-express#readme |
then let's go with |
@BOLT04 Could we make it as part of the OpenForce event or do you wanna contribute it? More info asyncapi/website#599 |
yessss let's make it a part of the OpenForce event 👍. New contributors are always welcome 😃 |
Hi , I would like to work on this issue as part of the openforce event. Could you assign it to me? |
As per previous comments, I plan to implement it using redocly and will be creating a display using the openapi.yaml file which will serve as documentation. Regarding the path would you like for me to create a folder named docs and create a index.html file(which will contain the intergration with redocly) inside it? Here's something I have generated with redocly: Is this what you are looking for? |
@everly-gif You can handle that.
But that page should be visible on the server side, so you need to handle that by some |
Hi @magicmatatjahu I'm looking into https://github.com/AungMyoKyaw/redoc-express#readme could you tell me where would it be appropriate for me to add the code. I believe I should be editing app.ts right? I'm quite new to typescript but am familiar with node and express. |
@everly-gif You should create controller in the https://github.com/asyncapi/server-api/tree/master/src/controllers folder as |
Implemented by 0d4a418 |
We should serve our
openapi.yaml
document as separate page using https://github.com/swagger-api/swagger-ui or https://github.com/Redocly/redocAC:
/openapi
(or another like/docs
, we should discuss name of that path) theopenapi.yaml
specBefore contribution please start discussion to clarify implementation and your questions/problems :)
This problem is involved in the OpenForce event. Please don't contribute if you are not participating in this event. If the problem is not solved at the end of the event, feel free to contribute :)
The text was updated successfully, but these errors were encountered: