Summary
Summary
Build a throwaway, high-fidelity experiment of the integrated endpoint shape from the mock playground ADR so we can measure the actual surface area of the change before committing to a direction.
In this shape, the mock API is a server-rendered endpoint on the website itself, with the site deploying to Cloudflare instead of GitHub Pages. Same origin as the docs, one deployment pipeline, and co-located with the specs, schemas, and sample-data generation the site already has.
This is the companion to the Option 3A experiment and uses the same rubric. The hypothesis to test: because the specs, schemas, and sample-data generation already live in the website, the surface area of this change may be smaller than "migrate hosting" makes it sound and it avoids keeping a second service in sync.
Data layer: same approach as the 3A experiment-- start from the website's existing sample-data generator (generateSchemaExample() in src/lib/schema/example-generator.ts, which runs openapi-sampler over the JSON schemas and powers the examples on the models pages), falling back to the #1049 fixture/handlers only where it can't deliver. Note the generator reads files at build time, so even here samples likely need pre-generating rather than running per-request-- confirm.
Note this work is likely not wasted even if we choose 3A: the DNS migration to Cloudflare is happening regardless, and parallel GH Pages + Cloudflare deploys (e.g. beta.commongrants.org) are a useful stepping stone. If we don't choose this direction, it's a PR we close.
Acceptance criteria
Acceptance criteria
Summary
Summary
Build a throwaway, high-fidelity experiment of the integrated endpoint shape from the mock playground ADR so we can measure the actual surface area of the change before committing to a direction.
In this shape, the mock API is a server-rendered endpoint on the website itself, with the site deploying to Cloudflare instead of GitHub Pages. Same origin as the docs, one deployment pipeline, and co-located with the specs, schemas, and sample-data generation the site already has.
This is the companion to the Option 3A experiment and uses the same rubric. The hypothesis to test: because the specs, schemas, and sample-data generation already live in the website, the surface area of this change may be smaller than "migrate hosting" makes it sound and it avoids keeping a second service in sync.
Data layer: same approach as the 3A experiment-- start from the website's existing sample-data generator (
generateSchemaExample()insrc/lib/schema/example-generator.ts, which runsopenapi-samplerover the JSON schemas and powers the examples on the models pages), falling back to the #1049 fixture/handlers only where it can't deliver. Note the generator reads files at build time, so even here samples likely need pre-generating rather than running per-request-- confirm.Note this work is likely not wasted even if we choose 3A: the DNS migration to Cloudflare is happening regardless, and parallel GH Pages + Cloudflare deploys (e.g.
beta.commongrants.org) are a useful stepping stone. If we don't choose this direction, it's a PR we close.Acceptance criteria
Acceptance criteria
curlcommand, and from the TS SDK returns identical data