diff --git a/src/api-engine/api/routes/chaincode/serializers.py b/src/api-engine/api/routes/chaincode/serializers.py index 3125e4bbb..37b2c153f 100644 --- a/src/api-engine/api/routes/chaincode/serializers.py +++ b/src/api-engine/api/routes/chaincode/serializers.py @@ -51,7 +51,7 @@ class ChainCodeResponseSerializer(ChainCodeIDSerializer, serializers.ModelSerial class Meta: model = ChainCode - fields = ("id", "name", "version", "creator", "language", "create_ts", "md5") + fields = ("id", "package_id", "label", "creator", "language", "create_ts", "description") class ChaincodeListResponse(ListResponseSerializer): diff --git a/src/api-engine/api/routes/chaincode/views.py b/src/api-engine/api/routes/chaincode/views.py index b1693637a..88eb62f7f 100644 --- a/src/api-engine/api/routes/chaincode/views.py +++ b/src/api-engine/api/routes/chaincode/views.py @@ -95,12 +95,12 @@ def list(self, request): chanincodes_list = [ { "id": chaincode.id, - "name": chaincode.name, - "version": chaincode.version, + "package_id": chaincode.package_id, + "label": chaincode.label, "creator": chaincode.creator, "language": chaincode.language, "create_ts": chaincode.create_ts, - "md5": chaincode.md5, + "description": chaincode.description, } for chaincode in chaincodes_pages ]