프로젝트

일반

사용자정보

UploadZip » 이력 » 버전 1

이름없음, 2024/01/17 12:18

1 1 이름없음
h1. UploadZip
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
uploadZip(
15
uploadResourceRequest: UploadResourceRequest
16
): UploadAdvertizeZipResponse
17
</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
*Request Example*
34
35
<pre>
36
{
37
  "query": "mutation($param: UploadResourceRequest){
38
uploadZip(uploadResourceRequest: $param){
39
command  fullUrlPath}}",
40
  "variables": {
41
    "param": {
42
      "did": "NfoPEFaG1adkCpijR85L66",
43
      "path": "data" 
44
    }
45
  }
46
}</pre>
47
48
*Response Example*
49
50
<pre>
51
{
52
    "data": {
53
        "uploadZip": {
54
            "command": "uploadZip",
55
            "fullUrlPath": [
56
                "https://cdn.myd.world/data/cc.zip" 
57
            ]
58
        }
59
    }
60
}
61
</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)