Bug 16477

Summary: error-report-web: add a JSON API
Product: [Yocto Project Subprojects] Error Reporting tool Reporter: Tim Orling <tim.orling>
Component: Error Reporting ToolAssignee: Tim Orling <tim.orling>
Status: IN PROGRESS IMPLEMENTATION --- QA Contact:
Severity: enhancement    
Priority: Medium    
Version: 6.2   
Target Milestone: 6.2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Tim Orling 2026-10-29 19:33:38 UTC
Currently, for another tool to query errors.yoctoproject.org, it would have to build a valid query URL and then scrape the resulting HTML. Instead, we should provide a (simple) JSON API for queries.

Initial designs do not warrant a full blown RestAPI, which brings in additional python dependencies and therefore additional exposure to vulnerabilities and update churn. If usage is popular or the JSON API is shown to be lacking, we should probably consider Swagger/djangorestframework.

The initial JSON API will simply support the "same" types of queries already supported through the query URL workflow.