Skip to content

Commit

Permalink
Fix FAB-578
Browse files Browse the repository at this point in the history
Fix FAB-578 incorrect chaincode signature in REST API
fix rest_api.json

Change-Id: If2258b09d89a79cdfa73e6897af737a5286ec436
Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
  • Loading branch information
christo4ferris committed Oct 2, 2016
1 parent 131b36c commit a96b9ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
12 changes: 3 additions & 9 deletions core/rest/rest_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,15 +451,9 @@
"type": "object",
"properties": {
"type": {
"type": "string",
"default": "GOLANG",
"example": "GOLANG",
"enum":[
"UNDEFINED",
"GOLANG",
"NODE",
"JAVA"
],
"type": "integer",
"default": 1,
"example": 1,
"description": "Chaincode specification language."
},
"chaincodeID": {
Expand Down
18 changes: 6 additions & 12 deletions docs/API/CoreAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ POST host:port/chaincode
"path":"github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
},
"ctorMsg": {
"function":"init",
"args":["a", "1000", "b", "2000"]
"args":["init", "a", "1000", "b", "2000"]
}
},
"id": 1
Expand All @@ -266,8 +265,7 @@ POST host:port/chaincode
"path":"github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02"
},
"ctorMsg": {
"function":"init",
"args":["a", "1000", "b", "2000"]
"args":["init", "a", "1000", "b", "2000"]
},
"secureContext": "lukas"
},
Expand Down Expand Up @@ -304,8 +302,7 @@ Chaincode Invocation Request without security enabled:
"name":"52b0d803fc395b5e34d8d4a7cd69fb6aa00099b8fabed83504ac1c5d61a425aca5b3ad3bf96643ea4fdaac132c417c37b00f88fa800de7ece387d008a76d3586"
},
"ctorMsg": {
"function":"invoke",
"args":["a", "b", "100"]
"args":["invoke", "a", "b", "100"]
}
},
"id": 3
Expand All @@ -326,8 +323,7 @@ Chaincode Invocation Request with security enabled (add `secureContext` element)
"name":"52b0d803fc395b5e34d8d4a7cd69fb6aa00099b8fabed83504ac1c5d61a425aca5b3ad3bf96643ea4fdaac132c417c37b00f88fa800de7ece387d008a76d3586"
},
"ctorMsg": {
"function":"invoke",
"args":["a", "b", "100"]
"args":["invoke", "a", "b", "100"]
},
"secureContext": "lukas"
},
Expand Down Expand Up @@ -364,8 +360,7 @@ Chaincode Query Request without security enabled:
"name":"52b0d803fc395b5e34d8d4a7cd69fb6aa00099b8fabed83504ac1c5d61a425aca5b3ad3bf96643ea4fdaac132c417c37b00f88fa800de7ece387d008a76d3586"
},
"ctorMsg": {
"function":"query",
"args":["a"]
"args":["query", "a"]
}
},
"id": 5
Expand All @@ -386,8 +381,7 @@ Chaincode Query Request with security enabled (add `secureContext` element):
"name":"52b0d803fc395b5e34d8d4a7cd69fb6aa00099b8fabed83504ac1c5d61a425aca5b3ad3bf96643ea4fdaac132c417c37b00f88fa800de7ece387d008a76d3586"
},
"ctorMsg": {
"function":"query",
"args":["a"]
"args":["query", "a"]
},
"secureContext": "lukas"
},
Expand Down

0 comments on commit a96b9ed

Please sign in to comment.