PutLdpData » 이력 » 버전 2
이름없음, 2021/07/15 04:54
| 1 | 1 | 이름없음 | h1. PutLdpData |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | --- |
||
| 4 | |||
| 5 | * 모바일에서 Ldp 데이터를 입력합니다 |
||
| 6 | |||
| 7 | <pre><code class="java"> |
||
| 8 | putLdpData( |
||
| 9 | putRequest: PutRequest |
||
| 10 | ): LdpResponse |
||
| 11 | </code></pre> |
||
| 12 | |||
| 13 | --- |
||
| 14 | |||
| 15 | *Request* |
||
| 16 | |||
| 17 | | *field* | *type* | *description* | *note* | |
||
| 18 | | did | String | 사용자 did | | |
||
| 19 | | command | String | 요청에 대한 Command 종류 | 값: putLdpData | |
||
| 20 | | proposalId | String | proposal Id | | |
||
| 21 | | ldp | Ldp | | | |
||
| 22 | |||
| 23 | *Ldp* |
||
| 24 | |||
| 25 | | *field* | *type* | *description* | *note* | |
||
| 26 | | ageGroup | String | | | |
||
| 27 | | finalDegree | String | | | |
||
| 28 | |||
| 29 | *LdpResponse* |
||
| 30 | |||
| 31 | | *field* | *type* | *description* | *note* | |
||
| 32 | | result | String | | | |
||
| 33 | | command | String | | | |
||
| 34 | |||
| 35 | --- |
||
| 36 | |||
| 37 | *Request Example* |
||
| 38 | |||
| 39 | <pre><code class="java"> |
||
| 40 | mutation { |
||
| 41 | putLdpData(putRequest: { |
||
| 42 | did: "G5rw9qAMbozGxySHkMaztD" |
||
| 43 | command: "putLdpData" |
||
| 44 | proposalId: "test" |
||
| 45 | ldp: { |
||
| 46 | ageGroup: "{\"0\":0,\"1\":1,\"2\":0,\"3\":0,\"4\":0}" |
||
| 47 | finalDegree: "{\"0\":0,\"1\":0,\"2\":1,\"3\":0,\"4\":0}" |
||
| 48 | } |
||
| 49 | }) { |
||
| 50 | result |
||
| 51 | command |
||
| 52 | } |
||
| 53 | } |
||
| 54 | </code></pre> |
||
| 55 | |||
| 56 | *Response Example* |
||
| 57 | |||
| 58 | <pre><code class="java"> |
||
| 59 | { |
||
| 60 | "data": { |
||
| 61 | "putLdpData": { |
||
| 62 | "result": "CREATED" |
||
| 63 | "command": "putLdpData" |
||
| 64 | } |
||
| 65 | } |
||
| 66 | } |
||
| 67 | </code></pre> |