Open camhunt opened 5 years ago
TODO: These examples should be added to official docs / tutorials some point soon.
Some examples of using curl to get responses from the qri API. You need to be running qri connect
in another terminal:
curl -X GET localhost:2503/dustmop/more_animals
curl -X GET localhost:2503/body/dustmop/more_animals
curl -X GET localhost:2503/at/ipfs/Qma5CYA2i5nfF7k9ZGMtk418mCmZg7NjgACkFrP3zxU4fE
That ipfs path comes from qri list
.
Short of full documentation, it would be helpful in the near term to have some examples of how to interact with the API via REST calls (using curl, etc), as well as what features are/are not yet implemented.
Use case: I'd like to use chainlink as an oracle for my smart contracts. Chainlink would make the API call to check on the value of a data package (such as the most recent mod time), and return that to the smart contract for assessment.