We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
访问批量获取用户接口/api/v2/batch/profiles/,返回错误: {"result":false,"data":null,"code":-1,"message":"request failed, please check api log of bk-user"}
{"result":false,"data":null,"code":-1,"message":"request failed, please check api log of bk-user"}
源码: bkuser_core-->common-->viewset.py的mutliple_retrieve获取query_ids
建议修改文件 bkuser_core/profiles/views.py:
@swagger_auto_schema( manual_parameters=[], responses={"200": local_serializers.ProfileSerializer()}, tags=["profiles"], )
bkuser_core/profiles/views.py文件增加导入 openapi
from drf_yasg import openapi
swagger部分修改:
@swagger_auto_schema( manual_parameters=[openapi.Parameter("query_ids", openapi.IN_QUERY, description="input departments query_ids,逗号分割", type=openapi.TYPE_STRING)], responses={"200": local_serializers.ProfileSerializer(many=True)}, )
The text was updated successfully, but these errors were encountered:
确实有这个问题。我们会在 milestone 前修复这个问题,当然如果有余力可以提交 PR 就更好啦。
Sorry, something went wrong.
fix: adding query_serializer for profiles batch retrieve TencentBlueK…
65556c4
…ing#26
Merge pull request #56 from IMBlues/dev_blues
831f0bf
fix: adding query_serializer for profiles batch retrieve #26
IMBlues
Successfully merging a pull request may close this issue.
访问批量获取用户接口/api/v2/batch/profiles/,返回错误:
{"result":false,"data":null,"code":-1,"message":"request failed, please check api log of bk-user"}
源码:
bkuser_core-->common-->viewset.py的mutliple_retrieve获取query_ids
建议修改文件 bkuser_core/profiles/views.py:
bkuser_core/profiles/views.py文件增加导入 openapi
swagger部分修改:
The text was updated successfully, but these errors were encountered: