Skip to content

add API end-points for indexing#1721

Closed
VarshaUN wants to merge 1 commit into
aboutcode-org:mainfrom
VarshaUN:Build-API-for-quering
Closed

add API end-points for indexing#1721
VarshaUN wants to merge 1 commit into
aboutcode-org:mainfrom
VarshaUN:Build-API-for-quering

Conversation

@VarshaUN

@VarshaUN VarshaUN commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator

I built an API to query and download stored package data by implementing a viewset that handles listing, retrieving, and downloading packages by ID, URL, or SHA256 checksum, with filtering capabilities using a dependency for query refinement and read-only access for unauthenticated users. I set up API routing with a dedicated router to manage endpoints under a distinct /api/ path, cleanly separating them from web routes. This enables efficient package reuse, reduces redundant downloads, and enhances ScanCode.io’s functionality with programmatic access to package archives, pending final testing to confirm seamless integration.

Signed-off-by: Varsha U N <varshaun58@gmail.com>
@VarshaUN

VarshaUN commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator Author

Hey @AyanSinhaMahapatra , CI tests have failed since I am trying to import DownloadedPackage model that isn't in this branch , it is present in my last PR . How should I approach this??

@VarshaUN VarshaUN marked this pull request as draft July 8, 2025 11:05
@VarshaUN VarshaUN closed this by deleting the head repository Mar 26, 2026
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.

1 participant