restgohyperledger-fabricshimglide-golang

Patch Function in Shim Interface for golang


I am using hyperledger fabric services via golang with the shim package.

It has GetState, PutState, DelState. Get is used to retrieve a data linked to a key. Put is used to create/update the body of a data linked to a key

I want to ask, how will I use the PATCH REST API for the same?


Solution

  • There is no PATCH-like verb for making a partial update for the value of a key ... it is all or nothing.