AuthRegister » 이력 » 개정판 4
개정판 3 (이름없음, 2021/12/21 07:14) → 개정판 4/5 (이름없음, 2021/12/21 07:39)
h1. AuthRegister
<pre><code class="java">
authRegister(
param: AccountRegisterRequest
): AccountRegisterResponse
</code></pre>
*AccountRegisterRequest*
|_. field |_. type |_. description |_. note |
| id | String | 사용자 did | |
| context | String | | |
| authentication | String[] | | |
| verificationMethod | List<VerificationMethod> | | |
*VerificationMethod*
|_. field |_. type |_. description |_. note |
| id | String | 사용자 did | |
| type | String | | |
| controller | String | | |
| publicKeyBase58 | String | | |
*AccountRegisterResponse*
|_. field |_. type |_. description |_. note |
| id | String | 사용자 did | |
| context | String | | |
| authentication | String[] | | |
| verificationMethod | List<VerificationMethod> | | |
| created | String | | |
| updated | String | | |
| command | String | | |
---
*Request Example*
<pre><code class="java">
query {
authRegister(param: {
id: "G5rw9qAMbozGxySHkMaztD" "G1rw9qAMbozGxySHkMaztD"
context: "https://www.w3.org/ns/did/v1"
authentication: [
"G5rw9qAMbozGxySHkMaztD" "G1rw9qAMbozGxySHkMaztD"
]
verificationMethod: [
{
id: "G5rw9qAMbozGxySHkMaztD" "G1rw9qAMbozGxySHkMaztD"
type: "Ed25519VerificationKey2018"
controller: "G5rw9qAMbozGxySHkMaztD" "G1rw9qAMbozGxySHkMaztD"
publicKeyBase58: "9Dq5ZBptrf7Kgxe3K2Xw3aFwHSdoStiUrs98QPRgbrbt"
}
]
}) {
created
verificationMethod {
id
}
}
}
</code></pre>
*Response Example*
<pre><code class="java">
{
"data": {
"authRegister": {
"created": "2021-12-21 16:38:38",
"verificationMethod": [
{
"id": "G5rw9qAMbozGxySHkMaztD"
}
]
}
}
} TO BE
</code></pre>