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