Skip to content

Add endpoint for fetching package source (TS-2282) #1094

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Roffenlund
Copy link
Contributor

Add an endpoint to the Cyberstorm API for fetching package source data. This endpoint returns data similarly to the PackageSourceView.

@Roffenlund Roffenlund force-pushed the api-endpoint-for-package-source-data branch from 031c313 to fad5af9 Compare February 4, 2025 11:29
@Roffenlund Roffenlund requested a review from x753 February 11, 2025 10:41
@x753
Copy link
Contributor

x753 commented Feb 12, 2025

This API should probably take rejected packages into account.
Nevermind!

@Roffenlund Roffenlund force-pushed the api-endpoint-for-package-source-data branch from fad5af9 to 226caa2 Compare February 20, 2025 14:08
@@ -110,4 +111,4 @@
TeamServiceAccountListAPIView.as_view(),
name="cyberstorm.team.service-account",
),
]
] + plugin_registry.get_package_api_urls()
Copy link
Member

Choose a reason for hiding this comment

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

Given that we're appending these to the cyberstorm API url namespace, I feel we should make the plugin function reflect that and call it e.g. get_cyberstorm_api_urls or such. At least calling it get_package_api_urls doesn't make a lot of sense as it could actually provide any arbitrary API urls, not just package API urls

@Roffenlund Roffenlund force-pushed the api-endpoint-for-package-source-data branch 2 times, most recently from 9124440 to 78e8875 Compare February 28, 2025 12:36
Add endpoint for fetching package source data.

Implement tests.

Refs. TS-2282
@Roffenlund Roffenlund force-pushed the api-endpoint-for-package-source-data branch from 78e8875 to 24c61bc Compare March 3, 2025 12:16
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.

3 participants