UploadZip » 이력 » 버전 10
이름없음, 2021/06/10 05:45
1 | 10 | 이름없음 | h2. 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 | <pre><code class="c"> |
||
12 | 4 | 이름없음 | uploadZip( |
13 | 3 | 이름없음 | uploadResourceRequest: UploadResourceRequest |
14 | 4 | 이름없음 | ): UploadAdvertizeZipResponse |
15 | 3 | 이름없음 | </code></pre> |
16 | |||
17 | *UploadResourceRequest* |
||
18 | |||
19 | | field | type | description | |
||
20 | | did | String | snplab의 did | |
||
21 | | path | String | 업로드 한 파일 경로 | |
||
22 | |||
23 | *UploadAdvertizeZipResponse* |
||
24 | |||
25 | | field | type | description | |
||
26 | | command | String | 요청한 Command 유형 | |
||
27 | | fullurlPath | [String] | 저장된 파일 경로 | |
||
28 | |||
29 | *요청 예시* |
||
30 | |||
31 | <pre> |
||
32 | { |
||
33 | 4 | 이름없음 | "query": "mutation($param: UploadResourceRequest){ |
34 | 3 | 이름없음 | uploadZip(uploadResourceRequest: $param){ |
35 | 4 | 이름없음 | command fullUrlPath}}", |
36 | "variables": { |
||
37 | "param": { |
||
38 | "did": "NfoPEFaG1adkCpijR85L66", |
||
39 | 6 | 이름없음 | "path": "data" |
40 | 4 | 이름없음 | } |
41 | } |
||
42 | 3 | 이름없음 | }</pre> |
43 | |||
44 | *응답 예시* |
||
45 | |||
46 | <pre> |
||
47 | { |
||
48 | 4 | 이름없음 | "data": { |
49 | "uploadZip": { |
||
50 | "command": "uploadZip", |
||
51 | "fullUrlPath": [ |
||
52 | 6 | 이름없음 | "https://cdn.myd.world/data/cc.zip" |
53 | 4 | 이름없음 | ] |
54 | } |
||
55 | } |
||
56 | 3 | 이름없음 | } |
57 | </pre> |