RegisterConfig » 이력 » 버전 10
이름없음, 2021/06/10 02:19
| 1 | 7 | 이름없음 | h1. RegisterConfig |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | 10 | 이름없음 | 이벤트 이름, 지표를 이용해 설정을 등록합니다. |
| 4 | 9 | 이름없음 | |
| 5 | 5 | 이름없음 | h2. 요청 필드 |
| 6 | |||
| 7 | 2 | 이름없음 | <pre><code class="c"> |
| 8 | 3 | 이름없음 | registerConfig( |
| 9 | uploadConfigRequest: UploadConfigRequest |
||
| 10 | ): UploadDisclaimerResponse |
||
| 11 | 2 | 이름없음 | </code></pre> |
| 12 | |||
| 13 | *UploadConfigRequest* |
||
| 14 | |||
| 15 | 1 | 이름없음 | | field | type | description | |
| 16 | 4 | 이름없음 | | did | String | snplab 또는 b2b의 did | |
| 17 | 5 | 이름없음 | | command | String | 요청 Command 유형(값: "uploadConfig") | |
| 18 | 3 | 이름없음 | | event | String | %{color: #000000;}이벤트 이름% | |
| 19 | | indicators | [String] | %{color: #000000;}지표% | |
||
| 20 | 2 | 이름없음 | |
| 21 | *UploadDisclaimerResponse* |
||
| 22 | |||
| 23 | | field | type | description | |
||
| 24 | 8 | 이름없음 | | command | String | 요청 Command 유형 | |
| 25 | 2 | 이름없음 | | url | String | 저장된 경로 | |
| 26 | |||
| 27 | *요청 예시* |
||
| 28 | |||
| 29 | <pre> |
||
| 30 | 1 | 이름없음 | mutation{ |
| 31 | registerConfig(uploadConfigRequest: { |
||
| 32 | 9 | 이름없음 | 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 | 2 | 이름없음 | } |
| 44 | </pre> |
||
| 45 | |||
| 46 | *응답 예시* |
||
| 47 | |||
| 48 | <pre> |
||
| 49 | 3 | 이름없음 | { |
| 50 | 1 | 이름없음 | "data": { |
| 51 | 3 | 이름없음 | "registerConfig": { |
| 52 | "url": "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/config/kp73z92n7Iv2fzs.json", |
||
| 53 | 5 | 이름없음 | "command": "uploadConfig" |
| 54 | 3 | 이름없음 | } |
| 55 | } |
||
| 56 | 2 | 이름없음 | }</pre> |