← Back to index Logout

title: Docs API version: 1.0 date: 2026-10-25 author: Core Team status: Active


Documentation Web Server

Web-based API documentation served by the server. Supports both static HTML and WASM-based interactive documentation.

GET /doc

Auth: Not required

Redirect to WASM documentation.

Example

curl -L http://localhost:3002/doc

Response

301 Redirect → /doc-wasm


GET /doc-wasm

Auth: Not required

Serve WASM-based interactive documentation.

Example

curl http://localhost:3002/doc-wasm

Response (200)

HTML page with WASM documentation viewer.


GET /doc-wasm/*file

Auth: Not required

Serve WASM binary files and static assets for documentation.

Path Parameters

Parameter Type Description
file string File path (e.g., "pkg/md_wasm_bg.wasm")

Example

curl http://localhost:3002/doc-wasm/pkg/md_wasm_bg.wasm --output md_wasm_bg.wasm

Response (200)

Binary file with appropriate MIME type: - .wasm → application/wasm - .js → application/javascript - .css → text/css - .md → text/markdown


Documentation Types

WASM Documentation (Default)

Static Documentation


Environment Variables

Variable Default Description
MOMENTRY_DOCS_DIR {binary_dir}/docs_v1.0/doc_wasm Documentation root directory

Security


Version History

Version Date Changes
1.0 2026-10-25 Initial documentation