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