Skip to content
Snippets Groups Projects
Commit 002782b2 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'redoc-json' into 'master'

Use the JSON OpenAPI format for ReDoc

See merge request !1302
parents 19e778f5 04968b3b
No related branches found
No related tags found
1 merge request!1302Use the JSON OpenAPI format for ReDoc
......@@ -16,8 +16,8 @@
</style>
</head>
<body>
<!-- Add ?format=yaml to make ReDoc's download button get a YAML file, not HTML -->
<redoc spec-url="{% url 'api:openapi-schema' %}?format=yaml"></redoc>
<!-- Add ?format=json to make ReDoc's download button get a JSON file, not HTML -->
<redoc spec-url="{% url 'api:openapi-schema' %}?format=json"></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment