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