Skip to content
Snippets Groups Projects
Verified Commit 04968b3b authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Use the JSON OpenAPI format for ReDoc

parent 19e778f5
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