Lists all profiles api'sURL and response inconsistent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Xinxin Shen |
Bug Description
I get an error when using the API interface (/v1/iprofiles and /v1/iprofiles/
1.Execute the following URL command
curl -i http://
The following results are returned:
HTTP/1.1 404 Not Found
Content-Type: application/json
Content-Length: 85
Date: Sat, 11 Jul 2020 10:21:51 GMT
{"error_message": "{\"code\": 404, \"description\": \"\", \"title\": \"Not Found\"}"}
2.Error cause analysis
a.The API docs documentation is incorrect, the URL interface in the api documentation is
v1/iprofiles
https:/
b.The url in the code interface in the code is v1/iprofile, which is inconsistent with the
api docs
https:/
Changed in starlingx: | |
assignee: | nobody → Xinxin Shen (runsxx) |
description: | updated |
description: | updated |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.config |
Reviewed: https:/ /review. opendev. org/740446 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=9c80bd9dfac 67841dd9d362bec 6fc4442d3ac0be
Committed: https:/
Submitter: Zuul
Branch: master
commit 9c80bd9dfac6784 1dd9d362bec6fc4 442d3ac0be
Author: XinxinShen <email address hidden>
Date: Fri Jul 10 17:51:23 2020 +0800
Update API documentation
An error occurred when using the profile part of the API documentation {profile_ id}). After analyzing the code, iprofile/ {profile_ id}. This is inconsistent with the API documentation,
(/v1/iprofiles and /v1/iprofiles/
I found that the URLs set in the code are /v1/profile and
/v1/
so update the profile section of the API documentation.
Closes-Bug: #1887209
Change-Id: Id1222178ad0364 ff7121215664814 48e873c5245
Signed-off-by: Xinxin Shen <email address hidden>