dify/api/tests/unit_tests
GareArc a07b32274a
feat(api): add /openapi/v1/workspaces reads (Phase E.17)
GET /openapi/v1/workspaces lists tenants the bearer's account is a
member of. GET /openapi/v1/workspaces/<id> returns one workspace
detail, member-gated (404 on non-member, never 403, so workspace IDs
don't leak across tenants).

Bearer-authed via @validate_bearer(accept=ACCEPT_USER_ANY). External
SSO bearers (no account_id) get an empty list / 404 — same posture as
GET /openapi/v1/account.

Cookie-authed /console/api/workspaces stays in console for the
dashboard SPA — different consumer, different auth model. No legacy
/v1/ remount this phase.

Plan: docs/superpowers/plans/2026-04-26-openapi-migration.md (in difyctl repo).
2026-04-27 00:10:16 -07:00
..
commands feat: add metrics to clean message and workflow-run task (#33143) 2026-03-17 13:55:28 +08:00
configs feat: support configurable redis key prefix (#35139) 2026-04-14 09:31:41 +00:00
controllers feat(api): add /openapi/v1/workspaces reads (Phase E.17) 2026-04-27 00:10:16 -07:00
core fix: prevent double /v1 in MCP server URL causing 404 authorization failure (#34596) 2026-04-20 02:42:59 +00:00
enterprise/telemetry refactor: replace bare dict with dict[str, Any] in enterprise telemetry, external data tool, and moderation tests (#35185) 2026-04-14 17:51:02 +00:00
events feat: enterprise otel exporter (#33138) 2026-03-27 07:56:31 +00:00
extensions feat: support configurable redis key prefix (#35139) 2026-04-14 09:31:41 +00:00
factories chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
fields chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
libs feat(api): add require_scope decorator (Phase A.4) 2026-04-26 23:27:48 -07:00
models chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
oss refactor(api): replace test fixture side-effect imports (#34421) 2026-04-02 04:55:15 +00:00
repositories feat: collaboration (#30781) 2026-04-16 02:21:04 +00:00
services chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
tasks chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
tools chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
utils chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
.gitignore Enhance Code Consistency Across Repository with .editorconfig (#19023) 2025-04-29 18:04:33 +08:00
conftest.py refactor: select in service API wraps, file_preview, and site controllers (#34086) 2026-03-25 23:01:05 +09:00