MC/website/web/api.html
Dev 6deb4a2e7d DuneRealms V2 clean baseline
Owner-authorised history reset; current source tree preserved exactly.
2026-11-13 00:05:14 +01:00

1 line
No EOL
3.9 KiB
HTML

<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="theme-color" content="#101b23"><title>DuneRealms API · Developer Portal</title><link rel="stylesheet" href="/api-developer.css"><script type="module" src="/api-developer.js"></script></head><body><header><a href="/" class="brand">◈ DUNEREALMS <span>/ DEVELOPERS</span></a><a href="https://www.dunerealms.com/git/unimatrix/MC">SOURCE REPOSITORY ↗</a></header><main><section class="hero"><p class="eyebrow">DEVELOPER NETWORK // ALPHA 1.0.0.5</p><h1>API <em>Control Surface</em></h1><p>Explore documented public endpoints, inspect live responses, and discover authenticated account capabilities. No API key or credentials are displayed here.</p><div class="stats"><div><span>PUBLIC ACCESS</span><strong>Open</strong></div><div><span>SESSION</span><strong id="session-state">Checking…</strong></div><div><span>WORLD STATUS</span><strong id="world-state">Checking…</strong></div></div></section><section class="content"><div class="section-head"><h2>Public API endpoints</h2><p>Read-only endpoints available without an account. Responses and availability may change during Alpha.</p></div><div class="endpoints" id="public-endpoints"><article><code>GET /api/worlds</code><h3>World status</h3><p>Public status information for the network worlds.</p><button data-try="/api/worlds">Inspect response</button></article><article><code>GET /api/staff/roster</code><h3>Staff roster</h3><p>Public staff roster information, where published.</p><button data-try="/api/staff/roster">Inspect response</button></article><article><code>GET /api/auth/session</code><h3>Session identity</h3><p>Reports whether the current browser is signed in. Never returns passwords or session tokens.</p><button data-try="/api/auth/session">Inspect response</button></article></div><div class="response"><div class="response-head"><strong>RESPONSE INSPECTOR</strong><span id="response-status">Choose an endpoint</span></div><pre id="response-body" aria-live="polite">// Public GET requests only. Output limited for safety.</pre></div></section><section class="content private" id="account-section"><div class="section-head"><h2>Account &amp; developer access</h2><p id="account-intro">Checking account session…</p></div><div id="guest-links"><a class="primary" href="/login.html?return_to=%2Fapi.html">Sign in to unlock account tools</a><a href="https://cp.dunerealms.com/">Control Panel</a></div><div id="member-links" hidden><p id="account-name"></p><div class="link-grid"><a href="https://cp.dunerealms.com/">Account dashboard</a><a href="https://cp.dunerealms.com/#site-profile">Account profile</a><a href="https://cp.dunerealms.com/#user-management">Account management (authorized staff)</a><a href="https://www.dunerealms.com/git/unimatrix/MC">Repository &amp; integration source</a></div><p class="notice">Account-specific and staff operations are protected by their own authorization checks. Signing in does not grant administrative API access.</p></div></section><section class="content"><h2>Integration guidelines</h2><div class="guide"><p><b>Base URL</b> <code>https://www.dunerealms.com</code></p><p><b>Transport</b> HTTPS · JSON responses · standard HTTP status codes</p><p><b>Authentication</b> Browser session cookies for account routes. Do not send passwords or session tokens to third-party integrations.</p><p><b>Write operations</b> Require appropriate permissions and origin checks; they are not exposed in this public inspector.</p><p><b>Stability</b> Alpha interfaces may change. Use documented endpoints and handle errors and rate limits defensively.</p></div></section></main><footer><span>DUNEREALMS / DEVELOPER ACCESS</span><nav><a href="/">Home</a><a href="/manual.html">Field manual</a><a href="/patch-notes.html">Changelog</a><a href="https://cp.dunerealms.com/">Control Panel</a></nav></footer></body></html>