Skip to content

add API end-points for indexing #1721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VarshaUN
Copy link
Collaborator

@VarshaUN VarshaUN commented Jul 8, 2025

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
Copy link
Collaborator Author

VarshaUN commented Jul 8, 2025

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
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