Skip to content

Add GET /jobs/{job_id}/findings endpoint #4

@ionfwsrijan

Description

@ionfwsrijan

Description

Expose the persisted findings for a job via a simple GET endpoint. This is useful for debugging, for the frontend to re-load findings without re-scanning, and for future ML tooling to pull labeled data.

What to implement

  • GET /jobs/{job_id}/findings — returns all findings for a job from SQLite as JSON
  • GET /jobs/{job_id}/verify — returns the verify outcome for a job if it exists
  • Return 404 with a clear message if the job_id doesn't exist in the DB

Response shape for /findings:

{
  "job_id": "abc123",
  "finding_count": 12,
  "findings": [
    {
      "id": "uuid",
      "rule_id": "...",
      "severity": "HIGH",
      "scanner": "semgrep",
      ...
    }
  ]
}

Acceptance criteria

  • Endpoint returns correct findings for a valid job_id
  • Returns 404 for unknown job_id
  • Findings from all three scanners are returned, not just Semgrep

Metadata

Metadata

Assignees

Labels

SSoC26backendBackend issueseasyEasy difficultygood first issueGood for newcomersmlML related issuestier-1TIER 1 Upgrade issues

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions