sunfish-prj / Service-Ledger

Distributed infrastructure underlying a FaaS federation
GNU General Public License v3.0
2 stars 3 forks source link

Introduce new api for computational service #2

Closed sunfish-prj closed 6 years ago

sunfish-prj commented 7 years ago

Add API to offer computational service, aka execution of code

andreamargheri commented 7 years ago

The Distributed Infrastructure underlying a FaaS federation makes available an API offering a computational service. The API has to be technology-agnostic thus to be implemented via any back-end techniques.

The propose API takes the following arguments

The API implementation depends on the used technology. In the case of Hyperledger chain-code, we have the following correspondences:

FLombardi-PhD commented 7 years ago

In the case of MongoDB, we have the following correspondences:

andreamargheri commented 7 years ago

Get and Put API would remain as-is. MongoDB would not implement the computational service API. If required, we might implement part of functionality with MongoDB procedure.

rsindper commented 6 years ago

I implemented a series of computation APIs for service ledger, a.k.a. setupLedger (hyperledger enviroment and network setting up), installChaincode, initChaincode and invokeChaincode. However, they all need a json web token as a parameter every time you call these APIs. This is fixed by the fabric nodejs sdk by design and I am not able to change it, which could be a problem for our specific scenario now. I already tested the anonymisation related chaincode and made sure it worked properly. What I needed now a chaincode "invoke" api that satisfies the requirement (e.g. without token autho). It would be great help if you could provide such an api asap. cheers. @andreamargheri @derigo88

The proposed API taking the following arguments are good with me. i.e,