AuthRegister » 이력 » 버전 5
이름없음, 2021/12/21 10:30
| 1 | 1 | 이름없음 | h1. AuthRegister |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | <pre><code class="java"> |
||
| 4 | authRegister( |
||
| 5 | 5 | 이름없음 | param: AccountRequest |
| 6 | ): AccountResponse |
||
| 7 | 2 | 이름없음 | </code></pre> |
| 8 | |||
| 9 | 5 | 이름없음 | *AccountRequest* |
| 10 | 2 | 이름없음 | |
| 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 | 5 | 이름없음 | *AccountResponse* |
| 26 | 2 | 이름없음 | |
| 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 | 4 | 이름없음 | id: "G5rw9qAMbozGxySHkMaztD" |
| 44 | 3 | 이름없음 | context: "https://www.w3.org/ns/did/v1" |
| 45 | 2 | 이름없음 | authentication: [ |
| 46 | 4 | 이름없음 | "G5rw9qAMbozGxySHkMaztD" |
| 47 | 2 | 이름없음 | ] |
| 48 | verificationMethod: [ |
||
| 49 | { |
||
| 50 | 4 | 이름없음 | id: "G5rw9qAMbozGxySHkMaztD" |
| 51 | 3 | 이름없음 | type: "Ed25519VerificationKey2018" |
| 52 | 4 | 이름없음 | controller: "G5rw9qAMbozGxySHkMaztD" |
| 53 | 3 | 이름없음 | publicKeyBase58: "9Dq5ZBptrf7Kgxe3K2Xw3aFwHSdoStiUrs98QPRgbrbt" |
| 54 | 2 | 이름없음 | } |
| 55 | ] |
||
| 56 | }) { |
||
| 57 | created |
||
| 58 | verificationMethod { |
||
| 59 | id |
||
| 60 | } |
||
| 61 | } |
||
| 62 | } |
||
| 63 | </code></pre> |
||
| 64 | 1 | 이름없음 | |
| 65 | *Response Example* |
||
| 66 | |||
| 67 | <pre><code class="java"> |
||
| 68 | 4 | 이름없음 | { |
| 69 | "data": { |
||
| 70 | "authRegister": { |
||
| 71 | "created": "2021-12-21 16:38:38", |
||
| 72 | "verificationMethod": [ |
||
| 73 | { |
||
| 74 | 5 | 이름없음 | "id": "G5rw9qAMbozGxySHkMaztD" |
| 75 | 4 | 이름없음 | } |
| 76 | ] |
||
| 77 | } |
||
| 78 | } |
||
| 79 | } |
||
| 80 | 2 | 이름없음 | </code></pre> |