[#672] Implement chaincode invoke demo functionality with comprehensive TLS integration #686
+862
−141
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.
Summary
Implements chaincode invoke demo functionality for issue #672. Adds a REST API endpoint to enable programmatic chaincode invocation on Hyperledger Fabric networks managed by Cello.
Problem Addressed
Users needed a way to invoke chaincode functions through Cello's API without requiring manual Fabric CLI commands, enabling better integration with applications and automated testing workflows.
Solution Implemented
API Usage
Technical Implementation
Core Components:
Integration Points:
Files Modified
src/api-engine/api/routes/chaincode/serializers.py- Request validation logicsrc/api-engine/api/routes/chaincode/views.py- Main endpoint implementationsrc/agent/docker-rest-agent/server.py- Enhanced node creation handlingsrc/api-engine/api/lib/agent/docker/handler.py- Improved error loggingsrc/api-engine/api/routes/node/views.py- Better resource validation messagesbootup/docker-compose-files/docker-compose.dev.yml- Development environment improvementsTesting Status
Security and Compatibility
Notes for Review
This implementation extends the existing chaincode lifecycle management infrastructure without disrupting current functionality. The code follows established Cello patterns and integrates seamlessly with the current authentication and certificate management systems.
Closes #672