dify/api/controllers/service_api
GareArc b7bd9c19ed
feat(api): lift identity + self-revoke to /openapi/v1/account (Phase C.9-10)
GET /v1/me moves to GET /openapi/v1/account. DELETE
/v1/oauth/authorizations/self moves to DELETE
/openapi/v1/account/sessions/self. Both classes (AccountApi,
AccountSessionsSelfApi) are now in controllers/openapi/account.py and
re-registered on service_api_ns at the legacy paths.

service_api/oauth.py is now nothing but legacy re-mount declarations
(20 lines). All in-place handler logic has moved to openapi/. Phase F
will delete the file and the legacy mounts together.

Helper functions (_load_memberships, _pick_default_workspace,
_workspace_payload, _account_payload) move with the AccountApi class.

Plan: docs/superpowers/plans/2026-04-26-openapi-migration.md (in difyctl repo).
2026-04-26 23:50:15 -07:00
..
app chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
dataset chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
end_user feat: Service API - add end-user lookup endpoint (#32015) 2026-02-09 14:01:22 +08:00
workspace chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
__init__.py feat(api,web): OAuth 2.0 device flow + bearer auth (RFC 8628) 2026-04-26 20:06:43 -07:00
index.py feat: API docs for service api (#24425) 2025-08-25 09:26:54 +08:00
oauth.py feat(api): lift identity + self-revoke to /openapi/v1/account (Phase C.9-10) 2026-04-26 23:50:15 -07:00
wraps.py refactor(api): tighten login and wrapper typing (#34447) 2026-04-02 09:36:58 +00:00