Skip to main content

REDOC_HTML

Constant REDOC_HTML 

Source
pub const REDOC_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 (ReDoc)</title>
  </head>
  <body>
    <redoc spec-url="/openapi.json"></redoc>
    <script src="https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js"></script>
  </body>
</html>
"#;
Expand description

GET /redoc — ReDoc over the service’s /openapi.json. FastAPI’s second built-in renderer; a three-pane reference that reads well for large APIs.