RegisterConfig » 이력 » 버전 15
이름없음, 2021/06/10 06:31
| 1 | 7 | 이름없음 | h1. RegisterConfig |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | 11 | 이름없음 | 사건, 선행지표를 등록합니다. |
| 4 | 9 | 이름없음 | |
| 5 | 14 | 이름없음 | <pre><code class="java"> |
| 6 | 3 | 이름없음 | registerConfig( |
| 7 | uploadConfigRequest: UploadConfigRequest |
||
| 8 | ): UploadDisclaimerResponse |
||
| 9 | 2 | 이름없음 | </code></pre> |
| 10 | |||
| 11 | 15 | 이름없음 | --- |
| 12 | |||
| 13 | 2 | 이름없음 | *UploadConfigRequest* |
| 14 | |||
| 15 | 12 | 이름없음 | | field | type | description | note | |
| 16 | | did | String | snplab 또는 b2b의 did | | |
||
| 17 | | command | String | 요청 Command 유형 | 값: uploadConfig | |
||
| 18 | | event | String | %{color: #000000;}이벤트 이름% | %{color: #000000;} % | |
||
| 19 | | indicators | [String] | %{color: #000000;}지표% | %{color: #000000;} % | |
||
| 20 | 2 | 이름없음 | |
| 21 | *UploadDisclaimerResponse* |
||
| 22 | |||
| 23 | 12 | 이름없음 | | field | type | description | note | |
| 24 | | command | String | 요청 Command 유형 | 값: uploadConfig | |
||
| 25 | 1 | 이름없음 | | url | String | 저장된 경로 | | |
| 26 | 12 | 이름없음 | |
| 27 | 13 | 이름없음 | --- |
| 28 | 2 | 이름없음 | |
| 29 | 13 | 이름없음 | *Request Example* |
| 30 | |||
| 31 | 2 | 이름없음 | <pre> |
| 32 | 1 | 이름없음 | mutation{ |
| 33 | registerConfig(uploadConfigRequest: { |
||
| 34 | 9 | 이름없음 | event: "event-1" |
| 35 | indicators: [ |
||
| 36 | "simple config 1st", |
||
| 37 | "simple config 2nd" |
||
| 38 | ] |
||
| 39 | did:"NfoPEFaG1adkCpijR85L66" |
||
| 40 | command: "uploadConfig" |
||
| 41 | }){ |
||
| 42 | url |
||
| 43 | command |
||
| 44 | } |
||
| 45 | 2 | 이름없음 | } |
| 46 | </pre> |
||
| 47 | |||
| 48 | 13 | 이름없음 | *Response Example* |
| 49 | 2 | 이름없음 | |
| 50 | <pre> |
||
| 51 | 3 | 이름없음 | { |
| 52 | 1 | 이름없음 | "data": { |
| 53 | 3 | 이름없음 | "registerConfig": { |
| 54 | "url": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/config/kp73z92n7Iv2fzs.json", |
||
| 55 | 5 | 이름없음 | "command": "uploadConfig" |
| 56 | 3 | 이름없음 | } |
| 57 | } |
||
| 58 | 2 | 이름없음 | }</pre> |