<< Back to previous view |
![]() |
[QB-4138] Modify REST API response for better user experience
|
|
Status: | Open |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Improvement | Priority: | Major |
Reporter: | Nguyen Danh Hung | Assigned To: | Robin Shen |
Resolution: | Unresolved | Votes: | 1 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
Hello Mr. Robin Shen, Mr. Steve Luo,
Could you please modify REST API to return the response code for the correct scenario? Here are some cases /rest/builds/{invalid_build_id} /rest/ids?request_id={invalid_request_id} /rest/files/artifacts/{invalid_build_id} /rest/configurations?parent_id={blank} /rest/configurations/{invalid_build_id} -> return 404/400 instead of 500 when can not find build Thank you. |
Comments |
Comment by ChangSeop LEE [ 05/Feb/25 02:57 AM ] |
Hello Robin,
Could you share your opinion about this request? |
Comment by Robin Shen [ 05/Feb/25 02:14 PM ] |
We can not make this change currently as this will cause incompatiblities and will affect existing users relying on the status code (although not confirm to standard) for those situations. |
Comment by ChangSeop LEE [ 05/Feb/25 11:09 PM ] |
Thanks for your opinion and I agree that the modification will affect existing users relying on the status code.
Nevertheless, if you are available, I would like to propose aligning with the standard at certain moments, such as the major QuickBuild version upgrade. |