mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 18:14:10 +00:00

- move spec to _static/rest-api.yml, since the original yaml must be served - copy javascript rendering code from FastAPI (uses swagger-ui) - remove link to pet store, since there isn't a big enough difference to duplicate it - remove bootprint rendering with node
772 B
772 B
JupyterHub REST API
Below is an interactive view of JupyterHub's OpenAPI specification.
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js"></script> <script> const ui = SwaggerUIBundle({ url: '../_static/rest-api.yml', dom_id: '#openapi-ui', presets: [ SwaggerUIBundle.presets.apis, SwaggerUIBundle.SwaggerUIStandalonePreset ], layout: "BaseLayout", deepLinking: true, showExtensions: true, showCommonExtensions: true, }); </script>