Skip to main content

SCALAR_HTML

Constant SCALAR_HTML 

Source
pub const SCALAR_HTML: &str = r#"<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Delonix Seiva — API reference (Scalar)</title>
  </head>
  <body>
    <script id="api-reference" data-url="/openapi.json"></script>
    <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
  </body>
</html>
"#;
Expand description

GET /scalar — Scalar, a single-page modern API reference. Kept as a bonus renderer alongside the FastAPI-parity Swagger UI and ReDoc pages.