We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/lookup/doc
Fetching a stored public document on the Verida network can be time consuming as they make a blockchain request. They also require the Verida SDK.
Create an endpoint on the storage node (/lookup/doc/${docUri}) that fetches the public document and returns it. This will be cached.
/lookup/doc/${docUri}
Example docUri: verida://${did}/${contextHash}/${databaseName}/$documentId
verida://${did}/${contextHash}/${databaseName}/$documentId
Example requests:
/lookup/doc?uri=urlEncode('verida://${did}/${contextHash}/${databaseName}/$documentId')
/lookup/doc?uri=urlEncode('verida://${did}/${contextHash}/${databaseName}/$documentId'?ignoreCache=true)
The text was updated successfully, but these errors were encountered:
Perhaps extend this to support fetching multiple documents.
Then you could easily fetch a full public profile at once.
Ideally it's possible to return an actual image for an avatarUri
avatarUri
Sorry, something went wrong.
tahpot
No branches or pull requests
Fetching a stored public document on the Verida network can be time consuming as they make a blockchain request. They also require the Verida SDK.
Create an endpoint on the storage node (
/lookup/doc/${docUri}
) that fetches the public document and returns it. This will be cached.Example docUri:
verida://${did}/${contextHash}/${databaseName}/$documentId
Example requests:
/lookup/doc?uri=urlEncode('verida://${did}/${contextHash}/${databaseName}/$documentId')
/lookup/doc?uri=urlEncode('verida://${did}/${contextHash}/${databaseName}/$documentId'?ignoreCache=true)
The text was updated successfully, but these errors were encountered: