Comment 0 for bug 1887209

Revision history for this message
Xinxin Shen (runsxx) wrote :

1.操作做一把,把错误信息粘贴
2.分析错误原因,a.API docs 不正确[1];b.代码中代码接口中的url和api说明不一致,

3.system cpuprofile-lis 异常,也需要修复

When using the profile api interface in the API documentation.
After my analysis of the configuration file in the code, the correct one is
v1/profile. In order to comply with the url calling specification, the url
interface in the configuration file profile.py was changed to v1/profiles,
and the api document was updated.

[1]https://docs.starlingx.io/api-ref/config/api-ref-sysinv-v1-config.html?expanded=lists-all-profiles-detail#lists-all-profiles
[2] https://github.com/starlingx/config/blob/master/sysinv/cgts-client/cgts-client/cgtsclient/v1/iprofile.py#L20