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>
28 lines
772 B
TypeScript
28 lines
772 B
TypeScript
import type { Metadata } from "next";
|
|
import { API_SPEC } from "@/lib/apiSpec";
|
|
import { ApiDocsIntro } from "./_components/ApiDocsIntro";
|
|
import { EndpointList } from "./_components/EndpointList";
|
|
import { EndpointCard } from "./_components/EndpointCard";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "API — PaperTrail",
|
|
description:
|
|
"HTTP API reference for PaperTrail: verify clinical-trial claims and read stored verifications.",
|
|
};
|
|
|
|
export default function ApiDocsPage() {
|
|
return (
|
|
<main className="mx-auto max-w-3xl px-4 py-12">
|
|
<ApiDocsIntro />
|
|
|
|
<EndpointList />
|
|
|
|
<div className="mt-10">
|
|
{API_SPEC.map((e) => (
|
|
<EndpointCard key={`${e.method} ${e.path}`} endpoint={e} />
|
|
))}
|
|
</div>
|
|
</main>
|
|
);
|
|
}
|