Spaces:
Sleeping
Sleeping
JEP API v0.6 Seed Examples
Create
curl -X POST http://localhost:7860/events/create \
-H "content-type: application/json" \
-d '{
"verb": "J",
"who": "did:example:agent-789",
"what": {
"claim": "approve",
"subject": "demo"
},
"aud": "https://api.example.org",
"ext": {
"https://example.org/profile": {
"name": "demo"
}
},
"ext_crit": [
"https://example.org/profile"
]
}'
Verify
Save the event object from /events/create as event.json.
curl -X POST http://localhost:7860/events/verify \
-H "content-type: application/json" \
-d '{
"event": <event-json>,
"mode": "archival"
}'