Update instructions to preview Swagger definitions
Use RapiDoc, the same library used in production. It is also compatible with OpenAPI 3.1. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
498cf6d147
commit
9b4773498a
2 changed files with 16 additions and 5 deletions
13
scripts/swagger-preview.html
Normal file
13
scripts/swagger-preview.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<rapi-doc spec-url="http://localhost:8000/api-docs.json"> </rapi-doc>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue