Includes detailed OpenAPI schemas for unsubscribe (GET and POST) and tracking pixel (GET) endpoints, supporting email compatibility and event tracking. Added support for RFC 8058-compliant one-click unsubscribe functionality and transparent image-based email tracking.
63 lines
2.1 KiB
HTML
63 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
{% load tz static %}
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ title }} - API Documentation</title>
|
|
<link rel="icon" type="image/png" href="{% static 'favicon.ico' %}">
|
|
<script type="module" src="{% static 'js/rapidoc-min.js' %}"></script>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
rapi-doc {
|
|
--primary-color: #5c7182;
|
|
--bg-color: #fafafa;
|
|
--text-color: #22282d;
|
|
--nav-bg-color: #ffffff;
|
|
--nav-text-color: #22282d;
|
|
--nav-hover-bg-color: #e2e7ea;
|
|
--nav-accent-color: #5c7182;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
rapi-doc {
|
|
--bg-color: #22282d;
|
|
--text-color: #e2e7ea;
|
|
--nav-bg-color: #353d44;
|
|
--nav-text-color: #e2e7ea;
|
|
--nav-hover-bg-color: #44515d;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<rapi-doc
|
|
spec-url="{{ schema_url }}"
|
|
heading-text="{{ title }}"
|
|
theme="dark"
|
|
render-style="read"
|
|
schema-style="table"
|
|
show-header="false"
|
|
show-info="true"
|
|
allow-authentication="true"
|
|
allow-server-selection="true"
|
|
allow-try="true"
|
|
allow-spec-url-load="false"
|
|
allow-spec-file-load="false"
|
|
show-method-in-nav-bar="as-colored-block"
|
|
nav-bg-color="#ffffff"
|
|
nav-text-color="#22282d"
|
|
nav-hover-bg-color="#e2e7ea"
|
|
nav-accent-color="#5c7182"
|
|
primary-color="#5c7182"
|
|
regular-font="system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif"
|
|
mono-font="ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace"
|
|
load-fonts="false"
|
|
sort-endpoints-by="path"
|
|
>
|
|
<img slot="logo" src="{% static 'favicon.png' %}" alt="{{ title }}" style="max-height: 40px; max-width: 150px;">
|
|
</rapi-doc>
|
|
</body>
|
|
</html>
|