Node v16.8.0
Install:
# curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
# apt -y install nodejs
# apt install build-essential
# cd ION-DID-API
# npm install
Run server
# node index.js
Server listen on port 3333
Check:
- Generate DID
$ POST http://localhost:3333/api/generate
Input
{
"publicKeyId": "publicKeyId...",
"serviceId": "serviceId...",
"serviceEndpoint": "serviceEndpoint..."
}
- Resolve DID
$ POST http://localhost:3333/api/resolve
Input
{
"longFormURI": "longFormURI..."
}
- Resolve DID (light)
$ POST http://localhost:3333/api/resolve-light
Input
{
"longFormURI": "longFormURI..."
}