Skip to content

feat: site manifest (0.5) - #11

Merged
ogorzalka merged 1 commit into
mainfrom
feat/0.5-manifest
Nov 24, 2026
Merged

ogorzalka merged 1 commit into
mainfrom
feat/0.5-manifest

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

First slice of 0.5. One public, cacheable GET /wp-json/headless/v1/site with what a front end needs before its first page: site, languages (with the front end of each), menus as trees with front-end paths, menu locations, front page settings, content types and taxonomies with their REST routes.

  • Deterministic (sorted, no clock): the ETag of the cache layer holds.
  • MenuTree: nests by parent, keeps the editor's order, cannot loop or lose items on a bad parent or a cycle.
  • Active once a front-end URL is set (manifest.enabled).
  • Unit tests and integration tests (real menus, locations, pages, post types).

GET /wp-json/headless/v1/site: the site and its languages, the menus as trees with front-end paths (MenuTree, cycle-safe), the menu locations, the front page, the content types and taxonomies with their REST routes. Public, deterministic (an ETag holds), cached like the rest of the public API.
@ogorzalka ogorzalka added the api-change The public surface (hooks, config keys, commands) changes label Nov 24, 2026
@ogorzalka
ogorzalka merged commit 044d129 into main Nov 24, 2026
11 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change The public surface (hooks, config keys, commands) changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant