UploadAdvertizeZip » 이력 » 버전 1
이름없음, 2024/01/17 12:18
| 1 | 1 | 이름없음 | h1. UploadAdvertizeZip (Multipart-Form) |
|---|---|---|---|
| 2 | |||
| 3 | 광고 페이지에 사용할 zip 파일을 업로드합니다. |
||
| 4 | |||
| 5 | *Martipart-Form 요청 형식* |
||
| 6 | |||
| 7 | | key | type | description | |
||
| 8 | | file | File | 업로드 할 파일 %{color: #ff0000;}(폴더를 포함하지 않고, html 및 htm 파일을 가진 zip 확장자)% | |
||
| 9 | | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | |
||
| 10 | |||
| 11 | --- |
||
| 12 | |||
| 13 | <pre><code class="java"> |
||
| 14 | uploadAdvertizeZip( |
||
| 15 | did: String |
||
| 16 | ): UploadAdvertizeZipResponse |
||
| 17 | </code></pre> |
||
| 18 | |||
| 19 | *did* |
||
| 20 | |||
| 21 | | field | type | description | |
||
| 22 | | did | String | snplab또는 b2b의 did | |
||
| 23 | |||
| 24 | *UploadAdvertizeZipResponse* |
||
| 25 | |||
| 26 | | field | type | description | note | |
||
| 27 | | command | String | 요청 Command 유형 | 값: uploadZip | |
||
| 28 | | fullUrlPath | [String] | 저장된 경로 | | |
||
| 29 | |||
| 30 | --- |
||
| 31 | |||
| 32 | *Request Example* |
||
| 33 | |||
| 34 | <pre> |
||
| 35 | { |
||
| 36 | "query": "mutation($did: String) {uploadAdvertizeZip(did: $did){ command fullUrlPath}}", |
||
| 37 | "variables": { |
||
| 38 | "did": "NfoPEFaG1adkCpijR85L66" |
||
| 39 | } |
||
| 40 | } |
||
| 41 | </pre> |
||
| 42 | |||
| 43 | *Response Example* |
||
| 44 | |||
| 45 | <pre> |
||
| 46 | { |
||
| 47 | "data": { |
||
| 48 | "uploadAdvertizeZip": { |
||
| 49 | "command": "uploadZip", |
||
| 50 | "fullUrlPath": [ |
||
| 51 | "https://cdn.myd.world/cec283c40561141e910b094a5469ed24/zip/YDk69J/cc.zip" |
||
| 52 | ] |
||
| 53 | } |
||
| 54 | } |
||
| 55 | }</pre> |