Skip to content

Migrate API usage to v3 - #13

Draft
laymonage wants to merge 3 commits into
mainfrom
api-v3
Draft

Migrate API usage to v3#13
laymonage wants to merge 3 commits into
mainfrom
api-v3

Conversation

@laymonage

@laymonage laymonage commented Aug 28, 2026

Copy link
Copy Markdown
Member

Fixes #11

Description

Use https://github.com/wagtail/bakerydemo/tree/headless-v3 for the backend

Some of the schemas can be generated using openapi-zod-client typed-openapi, but extra handling was required for foreign keys, especially images.

Might worth rethinking how we do FKs in core.

AI usage

Claude Code with Sonnet 5 in VSCode was used to do the migration. I've made some manual tweaks and done partial review of the changes, but haven't really looked into the lib/api.ts changes that much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch headless demo to v3 API

1 participant