<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16477</bug_id>
          
          <creation_ts>2026-10-29 19:33:38 +0000</creation_ts>
          <short_desc>error-report-web: add a JSON API</short_desc>
          <delta_ts>2026-10-29 19:34:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Error Reporting tool</product>
          <component>Error Reporting Tool</component>
          <version>6.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS IMPLEMENTATION</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107246</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-10-29 19:33:38 +0000</bug_when>
    <thetext>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 &quot;same&quot; types of queries already supported through the query URL workflow.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>