Files
roast_command_center/public/api-docs.html
T
Shane MaynardandClaude Fable 5 38c7d01e03
Test and deploy / test-and-deploy (push) Successful in 1m6s
Add brewing section, plan chat, roaster learning, API tokens, Swagger docs, and full backup
Brewing:
- roasted_beans + brews tables; /beans (bean management with LLM URL
  prefill) and /brews (silhouette brewer picker across immersion/
  percolation/espresso, recipe fields, auto ratio, 0-10 rating, tasting
  notes); bean remaining weight derived from logged brew doses
- Green inventory lot form also prefills from a product URL

Navigation/UX:
- Side nav is now generated from one definition in nav.js, grouped
  Roasting / Brewing / account, consistent on every page

LLM:
- 'Ask the LLM' chat drawer on the planner (stateless /api/plan-chat)
  grounded in the plan, computed ledger, learned pace, and a new
  roaster-behavior profile aggregated from uploaded .alogs
  (/api/roaster-profile: TP lag, phase RoR, median milestone temps)
- The profile also feeds roast reviews and the planner curve's fallback
  milestone temps

API platform:
- User-generated bearer tokens (rpt_…) with account-page management;
  token requests skip CSRF; hand-authored OpenAPI 3 spec at
  /api/openapi.json rendered by self-hosted Swagger UI at /api-docs
- Full-database backup export/import (admin) + per-user data export

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-08 22:37:42 -04:00

47 lines
1.3 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>API docs — Roast Planner</title>
<link rel="stylesheet" href="/swagger/swagger-ui.css" />
<link rel="icon" href="/icon.svg?v=__ASSET_VERSION__" type="image/svg+xml" />
<style>
body {
margin: 0;
}
.rp-docs-bar {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
background: #1b1614;
color: #fbf8f4;
font:
14px -apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
}
.rp-docs-bar a {
color: #f3b28c;
text-decoration: none;
}
</style>
</head>
<body>
<div class="rp-docs-bar">
<strong>Roast Planner API</strong>
<span
>Authenticate with your session (already active in this browser) or an
API token from your <a href="/account#api-tokens">account page</a
>.</span
>
<a href="/app" style="margin-left:auto">← Back to the app</a>
</div>
<div id="swagger-ui"></div>
<script src="/swagger/swagger-ui-bundle.js"></script>
<script src="/js/swagger-init.js?v=__ASSET_VERSION__"></script>
</body>
</html>