프로젝트

일반

사용자정보

AuthRegister » 이력 » 버전 1

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

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