feat: Complete API endpoint coverage with comprehensive tests and doc…#45
Merged
feat: Complete API endpoint coverage with comprehensive tests and doc…#45
Conversation
…umentation - Add 8 new API endpoint modules (Analytics, ThreatFeed, ApiTokens, etc.) - Implement 40+ unit tests and integration test suite - Fix FullScans documentation with correct method signatures - Update README.rst with complete endpoint documentation - Add secure .env configuration and organized test structure
|
🚀 Preview package published! Install with: pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketdev==3.0.4.dev1 |
reberhardt7
approved these changes
Sep 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds comprehensive API endpoint coverage to the Socket Python SDK, implementing 8 missing API endpoint modules and creating a robust testing infrastructure. The changes include:
New API Endpoint Modules:
Analytics- Organization and repository analytics (marked as deprecated with migration guidance)ThreatFeed- Threat feed items with org-scoped and global accessApiTokens- API token creation and managementAuditLog- Organization audit log entriesAlertTypes- Alert types metadata with multi-language supportDiffScans- Complete diff scan lifecycle managementTriage- Alert triage managementOpenAPI- API specification retrievalTesting Infrastructure:
--unit,--integration,--comprehensive-unit)tests/directory structureDocumentation & Configuration:
FullScanParamsobjects.envconfiguration and proper.gitignoreupdatesCode Quality:
This brings the SDK from partial API coverage to complete Socket.dev API v0 support with production-ready testing and documentation.
Public Changelog
Socket Python SDK v3.0.3