Skip to content

Support org-scoped batch package endpoint#76

Open
lelia wants to merge 6 commits intomainfrom
lelia/update-purl-endpoint-support
Open

Support org-scoped batch package endpoint#76
lelia wants to merge 6 commits intomainfrom
lelia/update-purl-endpoint-support

Conversation

@lelia
Copy link
Copy Markdown
Contributor

@lelia lelia commented Apr 8, 2026

Summary

  • Adds org_slug optional parameter to purl.post()
  • Routes to POST /v0/orgs/{slug}/purl when org_slug is provided
  • Falls back to the deprecated POST /v0/purl for backwards compatibility
  • Emits a DeprecationWarning when called without org_slug to guide callers toward the new endpoint

Adds

  • org_slug parameter on purl.post()
  • Unit test for org-scoped path routing
  • Unit test asserting legacy path is preserved when org_slug is omitted

Changes

  • README example updated to show org_slug usage

Reviewer Notes

🚨 NOTE: Should be reviewed in parallel with socket-python-cli companion PR (SocketDev/socket-python-cli#180), which passes org_slug in the CLI's license enrichment call. The CLI PR should not be merged until this SDK change is released.

lelia added 3 commits April 8, 2026 16:43
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
lelia added 3 commits April 8, 2026 17:21
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

🚀 Preview package published!

Install with:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketdev==3.1.0.dev1

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