Hi there.
I was wondering if there was a way the retrieve the JSON structure of a Template, might like the Navigator. I want to build a UI to create contracts, but I’d also like the same UI to handle any DAR file, or files I upload. So I was wondering if there is a way to get the JSON of a Template with empty values, and then to just jump over the keys and create dynamic UI based on the keys. Then just package the correct information together and send it to the HTTP JSON API.
For example, let’s say we use the IOU contract from the documentation. It’s running in a Fabric network, and I’ve got the UI done. Now I upload a second chaincode (DAR file) to the channel, but instead of the doing the UI, the UI just queries the world ledger and gets empty JSON strings for all the available templates/assets. Then the UI can dynamic build a form and offer it to the clients if the want to add details before submitting it.
Kind regards,
Hendre