forked from unimatrix/web
1 line
No EOL
6.3 KiB
HTML
1 line
No EOL
6.3 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><link rel="stylesheet" href="/portal-navigation.css"><script src="/portal-navigation.js" defer></script></head><body class="dune-public-page"><header class="dune-site-header"><a class="wordmark" href="https://www.dunerealms.com/" target="_top"><img class="masthead-logo" src="https://www.dunerealms.com/assets/dunerealms-season-logo-v2.webp" alt="dunerealms.com — The Quest for Tavren II Aedrecht — ALPHA" width="360" height="130"></a><button class="menu-toggle" aria-label="Open navigation" aria-expanded="false">☰</button><nav aria-label="Main navigation"><a href="https://www.dunerealms.com/"><img src="https://www.dunerealms.com/assets/nav-home-v2.webp" alt="" width="34" height="34" decoding="async"><span>Home</span></a><a href="https://www.dunerealms.com/shop.html"><img src="https://www.dunerealms.com/assets/nav-exchange-full-v2.webp" alt="" width="34" height="34" decoding="async"><span>Shop</span></a><a href="https://forums.dunerealms.com/"><img src="https://www.dunerealms.com/assets/nav-boards-v2.webp" alt="" width="34" height="34" decoding="async"><span>Boards</span></a><a href="https://www.dunerealms.com/staff.html"><img src="https://www.dunerealms.com/assets/nav-staff-v2.webp" alt="" width="34" height="34" decoding="async"><span>Roster</span></a><a href="https://www.dunerealms.com/discord.html"><img src="https://www.dunerealms.com/assets/nav-discord-v2.webp" alt="" width="34" height="34" decoding="async"><span>Discord</span></a><a href="https://www.dunerealms.com/exchange.html"><img src="https://www.dunerealms.com/assets/nav-exchange-v2.webp" alt="" width="34" height="34" decoding="async"><span>Exchange</span></a><a href="https://www.dunerealms.com/kits.html"><img src="https://www.dunerealms.com/assets/items/office_water.png" alt="" width="34" height="34" decoding="async"><span>Kits</span></a><a href="https://www.dunerealms.com/government.html"><img src="https://www.dunerealms.com/assets/seals/office-landsraad.png" alt="" width="34" height="34" decoding="async"><span>Politics</span></a><a href="https://clans.dunerealms.com/"><img src="https://www.dunerealms.com/assets/nav-clan-v2.webp" alt="" width="34" height="34" decoding="async"><span>Clans</span></a><a href="https://cp.dunerealms.com/"><img src="https://www.dunerealms.com/assets/nav-account-v2.webp" alt="" width="34" height="34" decoding="async"><span>CP</span></a><a href="https://support.dunerealms.com/"><img src="https://www.dunerealms.com/assets/nav-support-v2.webp" alt="" width="34" height="34" decoding="async"><span>Support</span></a><a href="https://wiki.dunerealms.com/"><img src="https://www.dunerealms.com/assets/nav-manual-v2.webp" alt="" width="34" height="34" decoding="async"><span>Dunopedia</span></a></nav></header><main><section class="hero"><p class="eyebrow">DEVELOPER NETWORK</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 & 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 & 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> |

Staff