프로젝트

일반

사용자정보

AuthUpdate » 이력 » 버전 1

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

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