Skip to content

feat(license): wrap GET /license/export-csv endpoint#196

Open
Valyrian-Code wants to merge 1 commit into
fossology:mainfrom
Valyrian-Code:feat/license-csv-export
Open

feat(license): wrap GET /license/export-csv endpoint#196
Valyrian-Code wants to merge 1 commit into
fossology:mainfrom
Valyrian-Code:feat/license-csv-export

Conversation

@Valyrian-Code

Copy link
Copy Markdown
Contributor

Refs #52.

Adds LicenseEndpoint.export_licenses_csv() for GET /license/export-csv — the export counterpart to the merged import_licenses_csv() (#185). Returns the exported licenses as CSV text and accepts an optional license id (0 = all).

API details

Verified against Fossology 4.4.0 (API 1.6.1) running in a container.

Tests

  • export → import round-trip — passes live. Idempotent, and robust because the export output is exactly what import_licenses_csv() expects.
  • Mocked 403 error path.

ruff and mypy pass; the export tests pass against a live fossology 4.4.0 container.

Refs fossology#52.

Adds LicenseEndpoint.export_licenses_csv() for GET /license/export-csv, the
export counterpart to the merged import_licenses_csv() (fossology#185). Returns the
exported licenses as CSV text and accepts an optional license id (0 = all).

Verified against Fossology 4.4.0 (API 1.6.1) running in a container: an
export->import round-trip test passes (idempotent), plus a mocked 403 error
path.

Signed-off-by: RAJVEER42 <irajveer.bishnoi2310@gmail.com>
Copilot AI review requested due to automatic review settings July 1, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants