프로젝트

일반

사용자정보

AuthDocument » 이력 » 버전 1

이름없음, 2024/01/17 12:18

1 1 이름없음
h1. AuthDocument
2
3
<pre><code class="java">
4
authDocument(
5
param: BaseRequest
6
): AccountResponse
7
</code></pre>
8
9
---
10
11
*BaseRequest*
12
13
|_. field |_. type |_. description |_. note |
14
| did | String | 사용자 did |   |
15
| command | String |   |   |
16
17
*AccountResponse*
18
19
|_. field |_. type |_. description |_. note |
20
| id | String | 사용자 did |   |
21
| context | String |   |   |
22
| created | String |   |   |
23
| updated | String |   |   |
24
| command | String |   |   |
25
| authentication | String[] |   |   |
26
| verificationMethod | List<VerificationMethod> |   |   |
27
28
*VerificationMethod*
29
30
|_. field |_. type |_. description |_. note |
31
| id | String | 사용자 did |   |
32
| type | String |   |   |
33
| controller | String |   |   |
34
| publicKeyBase58 | String |   |   |
35
36
---
37
38
*Request Example*
39
40
<pre><code class="java">
41
query {
42
  authDocument (param: {
43
    did: "G5rw9qAMbozGxySHkMaztD" 
44
    command: "authDocument" 
45
  }) {
46
    created
47
    updated
48
    verificationMethod {
49
      id
50
      publicKeyBase58
51
    }
52
  }
53
}
54
</code></pre>
55
56
*Response Example*
57
58
<pre><code class="java">
59
{
60
  "data": {
61
    "authDocument": {
62
      "context": null,
63
      "created": "2021-12-21 16:38:39",
64
      "updated": "2021-12-21 19:26:43",
65
      "verificationMethod": [
66
        {
67
          "id": "G5rw9qAMbozGxySHkMaztD",
68
          "publicKeyBase58": "9Dq5ZBptrf7Kgxe3K2Xw3aFwHSdoStiUrs98QPRgbrbt" 
69
        }
70
      ]
71
    }
72
  }
73
}
74
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)