mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
36 lines
1.0 KiB
HTML
36 lines
1.0 KiB
HTML
{% load static i18n %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{% trans "PeeringDB API Documentation" %}</title>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" type="text/css" href="//unpkg.com/swagger-ui-dist@3/swagger-ui.css" />
|
|
<style>
|
|
.parameters-col_description > input[disabled] {
|
|
display: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="swagger-ui"></div>
|
|
<script src="//unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script>
|
|
<script>
|
|
const ui = SwaggerUIBundle({
|
|
url: "{% static "api-schema.yaml" %}",
|
|
dom_id: '#swagger-ui',
|
|
presets: [
|
|
SwaggerUIBundle.presets.apis,
|
|
SwaggerUIBundle.SwaggerUIStandalonePreset
|
|
],
|
|
supportedSubmitMethods: [],
|
|
layout: "BaseLayout",
|
|
requestInterceptor: (request) => {
|
|
request.headers['X-CSRFToken'] = "{{ csrf_token }}"
|
|
return request;
|
|
}
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|