-
Notifications
You must be signed in to change notification settings - Fork 304
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
Add an HTML endpoint for /api
with interactive docs
#1418
Comments
/api
with docs/api
with interactive docs
We recently switched to redoc for the JupyterHub API on readthedocs: https://jupyterhub.readthedocs.io/en/latest/reference/rest-api.html |
Sure, can take a look at |
#1419 is ready for review: a lot of author doubt in there, and open to ways forward, with a personal bias toward first-party extension and |
References
Problem
Finding the docs for the REST API is semi-annoying, and then not particularly interactive.
Proposed Solution
If a user visits e.g.
http://127.0.0.1:8888/api
in a browser, show them an interactive HTML application (that we don't have to write).Additional context
This could be achieved by sniffing the
accept
header on/api
in .The static assets could be provisioned via (likely) some additional
npm
packages and a small jinja template to inject client settings (e.g._xsrf
).We ship the OpenAPI Specification for the Jupyter Server REST API. There are a number of static HTML apps that consume OpenAPI specs, and present the spec as human-centric UI, and can also make live requests via JS. Some examples:
This could be demonstrated initially with an extension.
A longer term play would be to build this type of content with the modern Jupyter Client framework, such that it would inherit local theme options.
The text was updated successfully, but these errors were encountered: