EverOS/docs
zhanghui 21b845bf88 feat(api): serve endpoints under /api/v2, retain /api/v1 as alias
Every business endpoint (memory/*, ome/*, knowledge/*) is now served
under /api/v2, aligning the open-source API with the EverOS Cloud
contract. /api/v1 is retained as a permanent, backward-compatible alias:
the same router objects are mounted under both prefixes, so both resolve
to identical handlers and request/response contracts. Existing /api/v1
integrations keep working unchanged. Infra endpoints (/health, /metrics)
stay unversioned.

Fix the Prometheus request-metric label to build the path from the full
request URL (with path params folded) rather than the route's
router-relative path, so the version prefix is preserved and v1/v2
traffic stays distinguishable.

Docs (docs/api.md, docs/openapi.json), CHANGELOG, and route docstrings
updated to lead with /api/v2. Add test_api_versioning as the parity
guard: every v2 route has an identical v1 twin and vice versa.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 13:44:58 +08:00
..
api.md feat(api): serve endpoints under /api/v2, retain /api/v1 as alias 2026-07-24 13:44:58 +08:00
architecture.md chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
cascade_runbook.md docs: align docs with v1.1 and trim README (#311) 2026-06-25 14:59:47 +08:00
cli.md chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
configuration.md chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
datetime.md chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
engineering.md docs: re-link orphaned docs and slim engineering.md (#313) 2026-06-26 07:40:51 +08:00
everos-demo.md feat(cli): add live demo mode (#302) 2026-06-23 20:11:23 +08:00
github-sync.md chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
how-memory-works.md docs: align docs with v1.1 and trim README (#311) 2026-06-25 14:59:47 +08:00
index.md chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
knowledge.md docs: align docs with v1.1 and trim README (#311) 2026-06-25 14:59:47 +08:00
migration-to-1.0.0.md chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
multimodal.md chore(release): update EverOS to 1.1.1 (#327) 2026-07-07 18:30:03 +08:00
openapi.json feat(api): serve endpoints under /api/v2, retain /api/v1 as alias 2026-07-24 13:44:58 +08:00
overview.md chore(release): update EverOS to 1.1.4 (#348) 2026-07-23 13:18:19 +08:00
prompt_slots.md docs: align docs with v1.1 and trim README (#311) 2026-06-25 14:59:47 +08:00
reflection.md chore(release): update EverOS to 1.1.0 (#307) 2026-06-24 23:17:23 +08:00
release-notes-1.1.0.md docs(readme): promote 1.1 knowledge and reflection (#308) 2026-06-24 23:24:00 +08:00
storage_layout.md docs: align docs with v1.1 and trim README (#311) 2026-06-25 14:59:47 +08:00
use-cases.md docs: align config and github workflow (#314) 2026-06-29 07:31:31 +08:00