dosubot[bot] commented on issue #3019:
URL: https://github.com/apache/hugegraph/issues/3019#issuecomment-4412053280
<!-- Answer -->
感谢指正,你说得对。我之前的回复有误。
经过进一步确认,在 1.7.0 中确实存在路径不一致的情况:
- **GroupAPI** 使用 `@Path("/auth/groups")`,不需要 graphspace 前缀
[[1]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/GroupAPI.java#L54)
- **UserAPI** 使用 `@Path("graphspaces/{graphspace}/auth/users")`
[[2]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/UserAPI.java#L56)
- **AccessAPI** 使用 `@Path("graphspaces/{graphspace}/auth/accesses")`
[[3]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/AccessAPI.java#L54)
- **BelongAPI** 使用 `@Path("graphspaces/{graphspace}/auth/belongs")`
[[4]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/BelongAPI.java#L53)
- **TargetAPI** 使用 `@Path("graphspaces/{graphspace}/auth/targets")`
[[5]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/TargetAPI.java#L54)
- **ProjectAPI** 使用 `@Path("graphspaces/{graphspace}/auth/projects")`
[[6]](https://github.com/apache/hugegraph/blob/9126c80e414c073b60fc074361b211cfb409e0eb/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/auth/ProjectAPI.java#L58)
这是 PR #2899 的改动结果——该 PR 将所有 auth API 中的 `/graphs/{graph}/` 段移除了,但对 GroupAPI
做了更激进的简化(同时移除了 graphspace 参数),而其他 auth API 仅移除了 graph 参数,仍保留了
`/graphspaces/{graphspace}/` 前缀。
所以目前的情况是:
- `/auth/groups` → 直接调用即可
- `/graphspaces/DEFAULT/auth/users`、`/graphspaces/DEFAULT/auth/targets` 等 →
仍需要 graphspace 前缀
这确实是一个一致性问题,GroupAPI 的路径风格和其他 auth 端点不统一。文档需要针对每个端点分别修正其正确路径。
<!-- Dosu Comment Footer -->
*To reply, just mention
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fhugegraph).*
---
Docs are dead. Just use
[Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fhugegraph).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fhugegraph&message_id=03b42a32-8502-4acc-947c-3892c08585cd)
[](https://github.dosu.com/apache/hugegraph?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fhugegraph)
[](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fhugegraph)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]