Add these endpoints after the /api/v1/diff/cache section:
POST /api/v1/branches- Create a new branchGET /api/v1/branches- List all branchesGET /api/v1/branches/active- Get currently active branchGET /api/v1/branches/stats- Get branch statisticsPOST /api/v1/branches/merge- Merge branchesGET /api/v1/branches/{name}- Get branch metadataDELETE /api/v1/branches/{name}- Delete a branchPOST /api/v1/branches/{name}/switch- Switch to a branch
Branch:
type: object
properties:
branch_name:
type: string
example: 'feature/new-schema'
parent_branch:
type: string
example: 'main'
creation_sequence:
type: integer
format: int64
example: 12345
creation_timestamp_ms:
type: integer
format: int64
example: 1736657231000
description:
type: string
example: 'Branch for testing new user schema'
created_by:
type: string
example: 'alice'
is_active:
type: boolean
example: false
required:
- branch_name
- parent_branch
- creation_sequence
- creation_timestamp_ms
- description
- created_by
- is_activeAll branch endpoints use tags: [mvcc, branches]
✅ REST API implementation complete in src/server/branch_api_handler.cpp
✅ All endpoints registered in HTTP server
✅ Full documentation in docs/en/features/features_branches.md and docs/de/features/features_branches.md
Update openapi/openapi.yaml to include the complete Branch API specification with request/response schemas.