Adding curl example

This commit is contained in:
Chris Troutner
2022-04-17 07:58:33 -07:00
parent 9669d0b16a
commit cc8a8e0947
+3
View File
@@ -227,6 +227,9 @@ class PsfSlpIndexer {
// Get mutable and immutable data for a token, if the token was created with // Get mutable and immutable data for a token, if the token was created with
// such data. // such data.
//
// Example:
// curl -H "Content-Type: application/json" -X POST -d '{ "tokenId": "afca62f07560b4c72c2ed6c9c3995315f964ccdfc37dded316d182640b42d88a" }' localhost:3000/v5/psf/slp/token/data
async getTokenData (req, res, next) { async getTokenData (req, res, next) {
try { try {
// Verify env var is set for interacting with the indexer. // Verify env var is set for interacting with the indexer.