-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Run Swagger UI so visitors can explore our APIs #5914
Comments
@RayBB @jimman2003 Would one of you be willing to lead this effort? |
@cclauss what exactly needs to be checked here? |
I added a todo list above. |
@cclauss I would like to contribute to this issue, please let me know if it's still available or not? |
That would be great!! I discussed this briefly with @cdrini and he said that the best would be if we could take the JavaScript and CSS bits and host the Swagger UI page on our own web server. Here is an effort to do that with FastAPI: |
Thank you! I will go through the FastAPI docs. |
@cclauss, I'm trying to access the API page on the development version, but it returns 404, so where and how can I access the API page on the dev version or, more specifically, the route of |
https://openlibrary.org/developers -- log in and click the |
Thank you so much, @cclauss, for clearing my questions. So, if I got it correct, there is no template defined for the
So, this JS files should be added in Please correct me if I missed something. |
@cdrini or @jimchamp, could you please help me with a few questions. |
@cclauss, I'm trying to commit the changes, but there is an unknown error, could you please help me out with this
|
Hey, so openlibrary uses pre-commit , a python program to run some checks over the code, please install it through the pip package installer with: pip install pre-commit |
Thank you so much for the help @jimman2003, I tried installing pre-commit but there was a new error
|
let me test also through gitpod :) |
@jimman2003, thank you for your help! I resolved the issue. |
Out of curiosity, how @Dnouv ? |
I got it fixed after a few installations,
And the changes got committed. |
@cclauss, could you please let me know the further tasks? I've opened a PR integrating Swagger UI and am still awaiting a review. |
Many people would like to have better, more interactive documentation on Open Library APIs.
Describe the problem that you'd like solved
Run https://github.com/swagger-api/swagger-ui on an Open Library server so that visitors can better understand and try out our APIs. #5898 could generate the required
openapi.json
file so our Swagger UI was kept up-to-date as our APIs change. Thetry it out
feature can make our APIs come alive even for nontechnical visitors.swagger-ui
on OL infrastructure.swagger-ui
running using theopenapi.json
to drive the user experience.swagger-ui
server.swagger-ui
? -- This is done automatically by a GItHub Action.swagger.yaml
?Proposal & Constraints
Additional context
Stakeholders
The text was updated successfully, but these errors were encountered: