Hierarchy parity: public REST API v1 and MCP expose parentId #110
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#110
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Machine surfaces should see and shape the page tree. ZIP export / Markdown import stay flat for now (round-trip fidelity of backup and the pandoc import pipeline would otherwise all need changes for a purely organizational field) — documented as an accepted gap.
Scope
/api/public/v1(apps/api/src/public-api/):parentId(and parent slug) in page list/detail responses; optionalparent(slug) on page create; a move operation (reuse the internal reposition semantics). Update the hand-maintained OpenAPI document + the two-way route-coverage test.apps/api/src/mcp/mcp-tools.ts+ service):list_pagesreturnsparent(slug);create_pageaccepts optionalparentslug; depth/cycle errors map to MCP tool errors with the api error code.docs/manual/api-guide.md,docs/manual/mcp-guide.md,docs/features.md.Acceptance criteria
create_pagewithparentplaces the page; invalid parent yields a tool error with the api code.Technical notes
Server+ hand-written tool table.Dependencies
Requires #106, #107.
Size
~1 day.
Implemented in
ffcc337. REST: page list/detail carryparent(the parent's slug, nulled when the token's user may not read it), create acceptsparent, PATCH moves withparent(slug nests, null → top level, appended at the end of the new sibling group viaPagesService.moveToEnd); OpenAPI updated, coverage test green. MCP:list_pagesreturnsparent,create_page/update_pagetake it;page_cyclesurfaces as a tool error (covered in the MCP e2e pack). ZIP export stays flat — documented in features.md.