프로젝트

일반

사용자정보

AuthDocument » 이력 » 버전 1

이름없음, 2021/12/21 10:36

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
*Request Example*
37
38
<pre><code class="java">
39
query {
40
  authDocument (param: {
41
    did: "G5rw9qAMbozGxySHkMaztD"
42
    command: "authDocument"
43
  }) {
44
    created
45
    updated
46
    verificationMethod {
47
      id
48
      publicKeyBase58
49
    }
50
  }
51
}
52
</code></pre>
53
54
*Response Example*
55
56
<pre><code class="java">
57
{
58
  "data": {
59
    "authDocument": {
60
      "context": null,
61
      "created": "2021-12-21 16:38:39",
62
      "updated": "2021-12-21 19:26:43",
63
      "verificationMethod": [
64
        {
65
          "id": "G5rw9qAMbozGxySHkMaztD",
66
          "publicKeyBase58": "9Dq5ZBptrf7Kgxe3K2Xw3aFwHSdoStiUrs98QPRgbrbt"
67
        }
68
      ]
69
    }
70
  }
71
}
72
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)