caelum0x 695a365ae4 feat: PaperTrail — enterprise evidence-verification platform
Multi-tenant platform (182 pages, 228 API routes, ~30 modules) built on a
deterministic verification core: clinical-trial claims checked against
ClinicalTrials.gov registered results and raw event counts (ARR/NNT/RR+CI
recomputed in code, oracle-tested), code-enforced exact-span grounding, and
multi-source cross-verification. Auth/RBAC/multi-tenancy, document processing
at scale (unpdf + Docling), agentic workflows, Claude Science connector,
compliance/audit, billing, public API, and more.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 07:21:22 +03:00

24 lines
1.1 KiB
TypeScript

import { type ApiEndpoint } from "@/lib/apiSpec";
import { CodeBlock } from "./CodeBlock";
import { MethodBadge } from "./MethodBadge";
// The one worked example we keep in full — the core endpoint everyone hits first.
const VERIFY_CURL = `curl -X POST https://your-deployment.vercel.app/api/verify \\
-H "Content-Type: application/json" \\
-d '{"claim": "Drug X reduced major cardiac events by 30% in adults with heart failure."}'`;
export function EndpointCard({ endpoint }: { endpoint: ApiEndpoint }) {
return (
<section className="border-t border-ink/10 py-8">
<div className="flex items-center gap-3">
<MethodBadge method={endpoint.method} />
<code className="font-mono text-sm text-ink/90">{endpoint.path}</code>
</div>
<p className="mt-3 text-sm leading-relaxed text-ink/70">{endpoint.description}</p>
{endpoint.path === "/api/verify" && <CodeBlock label="Example (curl)">{VERIFY_CURL}</CodeBlock>}
<CodeBlock label="Request">{endpoint.request}</CodeBlock>
<CodeBlock label="Response">{endpoint.response}</CodeBlock>
</section>
);
}