Skip to content
New issue

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

试用WebAPI遇到的两个问题 #11

Closed
waloyn opened this issue Feb 13, 2022 · 5 comments
Closed

试用WebAPI遇到的两个问题 #11

waloyn opened this issue Feb 13, 2022 · 5 comments

Comments

@waloyn
Copy link

waloyn commented Feb 13, 2022

问题1,通过API交互进行的配置变更在进程结束后均全部失效,如果保存变更后的配置?
问题2,当前文档显示API已添加身份认证,这个认证信息如何提交?是在header里还是在url里或者其它地方?

@ginuerzh
Copy link
Member

  1. 后面会添加。
  2. 认证使用的是HTTP的Basic Auth:https://zh.wikipedia.org/wiki/HTTP%E5%9F%BA%E6%9C%AC%E8%AE%A4%E8%AF%81

@waloyn
Copy link
Author

waloyn commented Feb 14, 2022

Reference

感谢回复,了解了,第二个问题昨天一直用的是swagger测试,上面的认证入口点不了,后面试着用其它方式,确实可以了。

@ginuerzh
Copy link
Member

保存接口和swagger认证功能均已添加。

@waloyn
Copy link
Author

waloyn commented Feb 15, 2022

保存接口和swagger认证功能均已添加。

还有个小问题,就是返回消息,比如删除不存在的项,除了services可以返回instance not found,其它都是返回ok。
abc
日志里的code记录,只有services是400,其它是200:
acd

@ginuerzh
Copy link
Member

已经统一返回400了

@waloyn waloyn closed this as completed Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants