zeekay
70a06029a4
base: route convention /api/* -> /v1/*
One path: /v1/*. We do not use /api/ — that's Casdoor's path. The
BASE_API_PREFIX env knob is gone; the prefix is hard-coded in
apis/base.go and apis/serve.go banner.
Server-side mounts:
- apis: bindHealthApi, bindCollectionApi, bindRecordCrudApi, etc. all
attach under r.Group("/v1") (was r.Group(BASE_API_PREFIX, default /api))
- platform plugin: /api/platform/* -> /v1/platform/* (including auth and
org sub-groups)
- kms plugin: /api/kms/* -> /v1/kms/*
- functions plugin: /api/functions/* -> /v1/functions/*
- cloudsql plugin: /api/cloud-sql/*, /api/meta/* -> /v1/*
- superuser OIDC: /_/api/oidc/config -> /_/v1/oidc/config
- core settings: default RateLimitRule labels /api/batch, /api/ ->
/v1/batch, /v1/
- apis/batch.go: ValidBatchActions regexes match /v1/collections/*;
internal rewrite targets /v1/collections/* (was /v1/base/collections/*,
a stale artifact)
Clients:
- sdk/base-js (BaseClient.collections, files, realtime, CRDT WS,
signIn/refresh/health) targets /v1/*
- sdk/base-react (use-crdt WS path) targets /v1/crdt
- ui-react admin (lib/api.ts, settings.application copy) targets /v1/*
- cmd/cli (NewClient.APIPrefix) defaults to /v1; client_test.go and
cmd/cli_test.go stubServer use /v1/*
- cmd/typegen calls /v1/collections
Upstream paths untouched: Casdoor IAM (/api/login, /api/userinfo,
/api/signup, /api/send-verification-code, /api/get-user), KMS Infisical
(/api/v1/auth/universal-auth/login, /api/v2/workspace/environments),
Kubernetes tasks (/api/v1/namespaces/...), IPFS (/api/v0/...), Gitea/
GitLab/Discord/Strava/Patreon/Box/Wakatime upstream APIs. Those are
their contracts, not ours.
Tests: all 437 prior /api/ test URLs across apis/*_test.go and
plugins/platform/auth_proxy_test.go updated to /v1/. Build + go vet
clean. ./apis ./core ./plugins/platform ./plugins/jsvm ./forms all
green. Pre-existing red probes (network/TestRedProbe_*,
migratecmd/TestAutomigrateCollection*) unchanged.
2026-05-15 14:41:26 -07:00
..
2026-03-01 18:00:00 -08:00
2026-05-15 04:04:26 -07:00
2025-02-10 11:58:49 -06:00
2026-05-15 03:50:49 -07:00
2026-04-22 13:39:01 -07:00
2026-05-15 04:04:26 -07:00
2026-05-15 04:04:26 -07:00
2026-05-15 03:40:04 -07:00
2024-11-15 09:13:00 +02:00
2026-05-15 03:19:02 -07:00
2026-05-15 03:19:02 -07:00
2026-05-15 03:19:02 -07:00
2024-09-29 21:09:46 +03:00
2026-05-15 03:40:04 -07:00
2025-02-10 11:58:49 -06:00
2024-09-29 21:09:46 +03:00
2026-05-15 03:19:02 -07:00
2026-05-15 03:40:04 -07:00
2026-03-01 18:00:00 -08:00
2026-05-15 03:40:04 -07:00
2026-05-15 03:50:49 -07:00
2026-05-15 03:40:04 -07:00
2026-05-15 03:19:02 -07:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:37:50 -08:00
2026-03-01 18:37:50 -08:00
2026-03-01 18:00:00 -08:00
2025-02-10 11:58:49 -06:00
2024-09-29 21:09:46 +03:00
2024-11-15 07:45:27 +02:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-05-15 03:19:02 -07:00
2026-03-01 18:00:00 -08:00
2026-04-14 01:33:39 -07:00
2026-03-01 18:37:50 -08:00
2026-03-01 18:37:50 -08:00
2026-03-01 18:37:50 -08:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2026-05-05 16:41:30 -07:00
2026-02-22 01:17:16 -08:00
2026-05-15 03:50:49 -07:00
2026-05-15 03:00:46 -07:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2026-03-01 18:00:00 -08:00
2026-02-27 09:43:39 -08:00
2026-02-27 09:43:39 -08:00
2026-02-22 01:17:16 -08:00
2026-02-22 01:17:16 -08:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2026-03-01 18:00:00 -08:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2026-02-22 01:17:16 -08:00
2026-03-01 18:00:00 -08:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2026-05-15 03:19:02 -07:00
2025-02-10 11:58:49 -06:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-05-15 04:04:26 -07:00
2025-02-10 11:58:49 -06:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2025-02-10 11:58:49 -06:00
2024-10-08 16:25:05 +03:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-04-25 15:35:01 -07:00
2026-05-15 04:04:26 -07:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-05-15 03:19:02 -07:00
2026-05-15 03:19:02 -07:00
2025-02-10 11:58:49 -06:00
2026-05-15 03:00:46 -07:00
2026-05-15 03:40:04 -07:00
2026-05-15 03:40:04 -07:00
2025-02-10 11:58:49 -06:00
2024-09-29 21:09:46 +03:00
2025-02-10 11:58:49 -06:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-05-15 03:19:02 -07:00
2026-05-15 03:19:02 -07:00
2026-05-15 03:19:02 -07:00
2026-03-01 18:00:00 -08:00
2026-05-15 14:41:26 -07:00
2025-02-10 11:58:49 -06:00
2025-02-10 11:58:49 -06:00
2026-02-27 09:43:39 -08:00
2025-08-22 20:47:58 +03:00
2026-04-27 00:17:49 -07:00
2026-03-01 18:00:00 -08:00
2026-03-01 18:00:00 -08:00
2026-05-15 03:40:04 -07:00
2026-03-01 18:00:00 -08:00