UploadZip » 이력 » 개정판 4
개정판 3 (이름없음, 2021/06/04 05:05) → 개정판 4/13 (이름없음, 2021/06/04 07:21)
h1. uploadZip *Martipart-Form 요청 형식* | key | type | description | | file | File | 업로드 할 파일 %{color: #ff0000;}(폴더를 포함하지 않고, html 및 html 파일을 가진 않는 zip 확장자)% 확장자 파일)% | | operations | Text(one-line) | 표준 GraphQL Post 요청 형식에 따른 쿼리를 작성합니다. | h2. *요청 필드* <pre><code class="c"> uploadZip( uploadResource( uploadResourceRequest: UploadResourceRequest ): UploadAdvertizeZipResponse UploadLocationResponse </code></pre> *UploadResourceRequest* | field | type | description | | did | String | snplab의 did | | path | String | 업로드 한 파일 경로 | *UploadAdvertizeZipResponse* | field | type | description | | command | String | 요청한 Command 유형 | | fullurlPath | [String] | 저장된 파일 경로 | *요청 예시* <pre> { "query": "mutation($param: UploadResourceRequest){ uploadZip(uploadResourceRequest: $param){ command fullUrlPath}}", "variables": { "param": { "did": "NfoPEFaG1adkCpijR85L66", "path": "data" } } }</pre> *응답 예시* <pre> { "data": { "uploadZip": "uploadResource": { "command": "uploadZip", "uploadResource", "result": [ { "originalFilename": "cc.html", "fullUrlPath": [ "https://cdn.myd.world/data/cc.zip" "https://cdn.myd.world/data/cc.html" } ] } } } </pre>