Raise An Attestation
post
/api/v1/send
Making a Claim
Parameters
Header
content-type*
Set to
application/json
authorization
Set to
Bearer {access-token}
if roles in schema of which attestation is to raised does not contain anonymous
else token can be emptyBody
...*
Object
The value of the claim
Responses
200: OK
Success Response of attestation sent
Sample Request Body
{
"entityName": "Teacher",
"entityId": "{id}",
"name": "schoolAffiliation" // attestation name
"propertiesOSID": { // OSIDs of properties to be attested
}
}
curl --location --request POST '{registry-url}/api/v1/send' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"entityName": "Teacher",
"entityId": "{id}",
"name": "schoolAffiliation"
}'
printf '{
"entityName": "Teacher",
"entityId": "{id}",
"name": "schoolAffiliation"
}'| http POST '{registry-url}/api/v1/send' \
Authorization:'Bearer {access-token}' \
Content-Type:'application/json' \
{registry-url}
is usually http://localhost:{port}. The port can be found under the registry
section in the docker-compose.yml
file and is usually 8081
Last modified 2mo ago