Demo
Demo data and sample environment setup.
Returns list of registered users.
Responses
200
Successful operation.
application/json
didstringRequiredExample:
did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599usernamestringRequiredExample:
StandardRegistryrolestringRequiredExample:
STANDARD_REGISTRYparentstringOptionalExample:
Parent DID for child users
did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599500
Internal server error.
application/json
get/demo/registered-users
GET /api/v1/demo/registered-users HTTP/1.1
Accept: */*
[
{
"did": "did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599",
"username": "StandardRegistry",
"role": "STANDARD_REGISTRY",
"policyRoles": []
},
{
"parent": "did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599",
"did": "did:hedera:testnet:4Rh3aC5jNAzPJwwNtsy95Ava954Thyjk41gREjynY2D9_0.0.8299835",
"username": "Installer",
"role": "USER",
"policyRoles": [
{
"name": "CDM AMS-III.AR Policy",
"version": "1.0.0",
"role": "Project Participant"
},
{
"name": "CDM AMS-III.BB Policy",
"version": "1.0.5",
"role": "Project Participant"
}
]
},
{
"parent": "did:hedera:testnet:Cvzp5kKVUuipBCQjcF54fBjdicvaKsB8zHeQ6Qq22U2Z_0.0.8200599",
"did": "did:hedera:testnet:3asJKFx6RVPRJi1qQNuRs26yuqJ7211mWJ5hrxNkmZqA_0.0.8299835",
"username": "VVB",
"role": "USER",
"policyRoles": [
{
"name": "CDM AMS-III.AR Policy",
"version": "1.0.0",
"role": "VVB"
}
]
}
]Generate demo key.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
Successful operation.
application/json
idstringRequiredExample:
Demo account ID
0.0.6046379keystringRequiredExample:
Demo account private key
302e020100300506032b657004220420f6168da5cd88b85151e9735252419f0768b87b1a800f7e3b7908d15fa1f358a2401
Unauthorized request.
application/json
403
Forbidden
application/json
500
Internal server error.
application/json
get/demo/random-key
GET /api/v1/demo/random-key HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "0.0.8340839",
"key": "302e020100300506032b657004220420f6168da5cd88b85151e9735252419f0768b87b1a800f7e3b7908d15fa1f358a2"
}Generate demo key.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
202
Successful operation.
application/json
taskIdstringRequiredExample:
Task ID
9db028d2-03ad-4d49-a178-cf4b67f8c147expectationnumberRequiredExample:
Expected count of task phases
3actionstringRequiredExample:
Task action
Create random keyuserIdstringRequiredExample:
User ID
69aeb71ef8c5b278e3bab4e5401
Unauthorized request.
application/json
403
Forbidden
application/json
500
Internal server error.
application/json
get/demo/push/random-key
GET /api/v1/demo/push/random-key HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"taskId": "405f156b-fad1-4f88-9b30-925dbeea1e39",
"expectation": 3,
"action": "Create random key",
"userId": "69bcfd91c98df6ceb05e8a79"
}Last updated
Was this helpful?