History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-4138
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Robin Shen
Reporter: Nguyen Danh Hung
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Modify REST API response for better user experience

Created: 09/Dec/24 04:55 AM   Updated: 05/Feb/25 11:09 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
ChangSeop LEE [05/Feb/25 02:57 AM]
Hello Robin,
Could you share your opinion about this request?

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.

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.