digital-asset / daml

The Daml smart contract language
https://www.digitalasset.com/developers
Other
802 stars 204 forks source link

Please provide sample response for contracts/search in http-json #2926

Closed lima-da closed 5 years ago

lima-da commented 5 years ago

The sample response for POST/GET http://localhost:7575/contracts/search is missing in the documentation: https://github.com/digital-asset/daml/tree/master/ledger-service/http-json

leo-da commented 5 years ago

/contracts/search is documented: https://github.com/digital-asset/daml/blob/603e0a169f27b93c66c0ab5145bc544c6e06a206/ledger-service/http-json/README.md#L71-L75

I guess I will stick the response into it

lima-da commented 5 years ago

@leo-da hmm, I assume the doc only includes POST request body. but not response.

leo-da commented 5 years ago

@lima-da @da-tanabe you guys probably not going to like the output :) Chatted with @lima-da we can display a flattened collection of ActiveContracts without the wrappers, offset and etc.