File size: 711 Bytes
263e3ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# JEP API v0.6 Seed Examples

## Create

```bash
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`.

```bash
curl -X POST http://localhost:7860/events/verify \
  -H "content-type: application/json" \
  -d '{
    "event": <event-json>,
    "mode": "archival"
  }'
```